when: on_success
expire_in: 1 week
paths:
- - VERSION
+ - GRAPHVIZ_VERSION
- COLLECTION
- graphviz-*.tar.gz
- graphviz-*.tar.xz
- Packages/*/*/*/*/*/*.rpm
- Packages/*/*/*/*/*.rpm
- Metadata/*/*/*/configure.log
- - VERSION
+ - GRAPHVIZ_VERSION
- COLLECTION
reports:
metrics: metrics.txt
- Packages/*/*/*/*/*/*deb
- Packages/*/*/*/*/*.gz
- Metadata/*/*/*/configure.log
- - VERSION
+ - GRAPHVIZ_VERSION
- COLLECTION
reports:
metrics: metrics.txt
- brew install pango || brew upgrade pango
- brew install libxaw || brew upgrade libxaw
- export PATH="/usr/local/opt/bison/bin:$PATH"
- - python3 gen_version.py > VERSION # FIXME: remove when building from portable source
+ - python3 gen_version.py > GRAPHVIZ_VERSION # FIXME: remove when building from portable source
- echo experimental > COLLECTION
- logfile=`mktemp`
- ci/build.sh 2>&1 | tee $logfile
when: on_success
expire_in: 1 week
paths:
- - VERSION
+ - GRAPHVIZ_VERSION
- COLLECTION
- Packages/*/*/*/*/*/*.zip
- Packages/*/*/*/*/*/*.tar.gz
- echo "$CI_JOB_NAME-warnings $warnings_count" > metrics.txt
- rm $logfile
- cat metrics.txt
- - python gen_version.py > VERSION
+ - python gen_version.py > GRAPHVIZ_VERSION
- python gen_version.py --collection > COLLECTION
# Package
- - $Env:GV_VERSION=$( cat VERSION )
+ - $Env:GV_VERSION=$( cat GRAPHVIZ_VERSION )
- >-
if($Env:project_platform -eq "x64") {
$API = "win64";
stage: test
script:
- ci/install-packages.sh
- - export GV_VERSION=$( cat VERSION )
+ - export GV_VERSION=$( cat GRAPHVIZ_VERSION )
- export OS_ID=$( cat OS_ID )
- python3 -m pytest --verbose --junitxml=report.xml ci/tests.py tests rtest
artifacts:
.test_template_including_ctest: &test_definition_including_ctest
stage: test
script:
- - export GV_VERSION=$( cat VERSION )
+ - export GV_VERSION=$( cat GRAPHVIZ_VERSION )
- export OS_ID=$( cat OS_ID )
- ci/test_coverage.py --init
- pushd build
when: always
expire_in: 1 week
paths:
- - VERSION
+ - GRAPHVIZ_VERSION
- COLLECTION
- Packages/*/*/*/*/*/*.exe
- Packages/*/*/*/*/*/*.zip
when: always
expire_in: 1 week
paths:
- - VERSION
+ - GRAPHVIZ_VERSION
- COLLECTION
- Packages/*/*/*/*/*/*.exe
- Packages/*/*/*/*/*/*.zip
<<: *linux_test_definition
before_script:
- export build_system="cmake"
- - python3 gen_version.py > VERSION
+ - python3 gen_version.py > GRAPHVIZ_VERSION
- echo experimental > COLLECTION
needs:
- job: "ubuntu18-04-cmake-build"
<<: *linux_test_definition
before_script:
- export build_system="cmake"
- - python3 gen_version.py > VERSION
+ - python3 gen_version.py > GRAPHVIZ_VERSION
- echo experimental > COLLECTION
needs:
- job: "ubuntu20-10-cmake-build"
# FIXME: remove the following when Graphviz can pass the test suite
# leak-free
- export ASAN_OPTIONS=detect_leaks=0
- - python3 gen_version.py > VERSION
+ - python3 gen_version.py > GRAPHVIZ_VERSION
- echo experimental > COLLECTION
needs:
- job: "ubuntu20-10-cmake-ASan-build"
<<: *linux_test_definition
before_script:
- export build_system="cmake"
- - python3 gen_version.py > VERSION
+ - python3 gen_version.py > GRAPHVIZ_VERSION
- echo experimental > COLLECTION
needs:
- job: "ubuntu21-04-cmake-build"
- export CFLAGS=" -g -fsanitize=address,undefined"
- export CXXFLAGS=" -g -fsanitize=address,undefined"
- export LDFLAGS=" -g -fsanitize=address,undefined"
- - python3 gen_version.py > VERSION
+ - python3 gen_version.py > GRAPHVIZ_VERSION
- echo experimental > COLLECTION
needs:
- job: "ubuntu21-04-cmake-ASan-build-for-ctest"
<<: *linux_test_definition
before_script:
- export build_system="cmake"
- - python3 gen_version.py > VERSION
+ - python3 gen_version.py > GRAPHVIZ_VERSION
- echo experimental > COLLECTION
# Graphviz libs are installed in /usr/lib, but Centos 7 doesn't look there by default
- export LD_LIBRARY_PATH=/usr/lib
# parse command line arguments
parser = argparse.ArgumentParser(description="Graphviz deployment script")
parser.add_argument("--version", help="Override version number used to "
- "create a release. Without this, the contents of the VERSION file will be "
- "used.")
+ "create a release. Without this, the contents of the GRAPHVIZ_VERSION file "
+ "will be used.")
parser.add_argument("--force", action="store_true", help="Force creating a "
"Gitlab release, even if the version number does not match \\d+.\\d+.\\d+.")
parser.add_argument("--verbose", action="store_true", help="Print more "
return -1
# retrieve version name left by prior CI tasks
- log.info("reading VERSION")
- with open("VERSION") as f:
+ log.info("reading GRAPHVIZ_VERSION")
+ with open("GRAPHVIZ_VERSION") as f:
gv_version = f.read().strip()
- log.info(f"VERSION == {gv_version}")
+ log.info(f"GRAPHVIZ_VERSION == {gv_version}")
- # if we were not passed an explicit version, use the one from the VERSION file
+ # if we were not passed an explicit version, use the one from the
+ # GRAPHVIZ_VERSION file
if options.version is None:
options.version = gv_version