From 463f51dcb03d01b027fd35ddf0632386225f4ac7 Mon Sep 17 00:00:00 2001 From: Niko Savola Date: Fri, 5 Jun 2026 12:00:04 +0300 Subject: [PATCH] Remove dead CI configurations --- .travis.yml | 582 ----------------------------------------- dropbox-deployment.yml | 4 - travis-build.sh | 37 --- 3 files changed, 623 deletions(-) delete mode 100644 .travis.yml delete mode 100644 dropbox-deployment.yml delete mode 100755 travis-build.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1d653e4974..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,582 +0,0 @@ -branches: - only: - - /v\d+\.\d+(\.\d+)?(\S*)?$/ # tag format: *v0.25(.8)(dev14) - - staging - - master - -matrix: - include: - # python manylinux packages - - name: "cp39-cp39m-manylinux2014_x86_64.whl" - os: linux - sudo: true - language: python - python: '3.9' - services: - - docker - env: - - DOCKER_IMAGE="quay.io/pypa/manylinux2014_x86_64" - - PY_VERSION="cp39-cp39" - - DOCKER_BUILD=true - - TEST_IN_HOST=true - - MATRIX_EVAL="" - cache: - directories: - - ccache - - - name: "cp38-cp38m-manylinux2014_x86_64.whl" - os: linux - sudo: true - language: python - python: '3.8' - services: - - docker - env: - - DOCKER_IMAGE="quay.io/pypa/manylinux2014_x86_64" - - PY_VERSION="cp38-cp38" - - DOCKER_BUILD=true - - TEST_IN_HOST=true - - MATRIX_EVAL="" - cache: - directories: - - ccache - - - name: "cp37-cp37m-manylinux2014_x86_64.whl" - os: linux - sudo: true - language: python - python: '3.7-dev' - services: - - docker - env: - - DOCKER_IMAGE="quay.io/pypa/manylinux2014_x86_64" - - PY_VERSION="cp37-cp37m" - - DOCKER_BUILD=true - - TEST_IN_HOST=true - - MATRIX_EVAL="" - cache: - directories: - - ccache - - - name: "cp36-cp36m-manylinux2014_x86_64.whl" - os: linux - sudo: true - language: python - python: '3.6' - services: - - docker - env: - - DOCKER_IMAGE="quay.io/pypa/manylinux2014_x86_64" - - PY_VERSION="cp36-cp36m" - - DOCKER_BUILD=true - - TEST_IN_HOST=true - - MATRIX_EVAL="" - cache: - directories: - - ccache - - - name: "cp35-cp35m-manylinux2014_x86_64.whl" - os: linux - sudo: true - language: python - python: '3.5' - services: - - docker - env: - - DOCKER_IMAGE="quay.io/pypa/manylinux2014_x86_64" - - PY_VERSION="cp35-cp35m" - - DOCKER_BUILD=true - - TEST_IN_HOST=true - - MATRIX_EVAL="" - cache: - directories: - - ccache - - - name: "cp27-cp27m-manylinux2014_x86_64.whl" - os: linux - sudo: true - language: python - python: '2.7' - services: - - docker - env: - - DOCKER_IMAGE="quay.io/pypa/manylinux2014_x86_64" - - PY_VERSION="cp27-cp27m" - - DOCKER_BUILD=true - - TEST_IN_HOST=false # travis's python 2.7 uses ucs4 (mu), so this test fails. - - MATRIX_EVAL="" - cache: - directories: - - ccache - - # python 3 osx - - # MacOS 10.15 - - # MacOS 10.15, Python 3.9 - - name: "cp39-cp39m-macosx_10_15_x86_64.whl" - os: osx - osx_image: xcode12 # macOS 10.15 - cache: - directories: - - ccache - addons: - homebrew: - packages: - - python@3.9 - - ccache - update: true - env: - - MATRIX_EVAL="shopt -s expand_aliases; alias python='/usr/local/opt/python@3.9/bin/python3'; alias pip='/usr/local/opt/python@3.9/bin/pip3';" - - ARCHFLAGS="-std=c++11" - - PIP_UPDATE="1" - - PYTHON_BUILD=true - - # MacOS 10.15, Python 3.8 - - name: "cp38-cp38m-macosx_10_15_x86_64.whl" - os: osx - osx_image: xcode12 # macOS 10.15 - cache: - directories: - - ccache - addons: - homebrew: - packages: - - python@3.8 - - ccache - update: true - env: - - MATRIX_EVAL="shopt -s expand_aliases; alias python='/usr/local/opt/python@3.8/bin/python3'; alias pip='/usr/local/opt/python@3.8/bin/pip3';" - - ARCHFLAGS="-std=c++11" - - PIP_UPDATE="1" - - PYTHON_BUILD=true - - # MacOS 10.15, Python 3.7 - - name: "cp37-cp37m-macosx_10_15_x86_64.whl" - os: osx - osx_image: xcode12 # macOS 10.15 - cache: - directories: - - ccache - addons: - homebrew: - packages: - - python@3.7 - - ccache - update: true - env: - - MATRIX_EVAL="shopt -s expand_aliases; alias python='/usr/local/opt/python@3.7/bin/python3'; alias pip='/usr/local/opt/python@3.7/bin/pip3';" - - ARCHFLAGS="-std=c++11" - - PIP_UPDATE="1" - - PYTHON_BUILD=true - - # MacOS 10.14 - - # MacOS 10.14, Python 3.9 - - name: "cp39-cp39m-macosx_10_14_x86_64.whl" - os: osx - osx_image: xcode11 # macOS 10.14 - cache: - directories: - - ccache - addons: - homebrew: - packages: - - python@3.9 - - ccache - update: true - env: - - MATRIX_EVAL="shopt -s expand_aliases; alias python='/usr/local/opt/python@3.9/bin/python3'; alias pip='/usr/local/opt/python@3.9/bin/pip3';" - - ARCHFLAGS="-std=c++11" - - PIP_UPDATE="1" - - PYTHON_BUILD=true - - # MacOS 10.14, Python 3.8 - - name: "cp38-cp38m-macosx_10_14_x86_64.whl" - os: osx - osx_image: xcode11 # macOS 10.14 - cache: - directories: - - ccache - addons: - homebrew: - packages: - - python@3.8 - - ccache - update: true - env: - - MATRIX_EVAL="shopt -s expand_aliases; alias python='/usr/local/opt/python@3.8/bin/python3'; alias pip='/usr/local/opt/python@3.8/bin/pip3';" - - ARCHFLAGS="-std=c++11" - - PIP_UPDATE="1" - - PYTHON_BUILD=true - - # MacOS 10.14, Python 3.7 - - name: "cp37-cp37m-macosx_10_14_x86_64.whl" - os: osx - osx_image: xcode11 # macOS 10.14 - cache: - directories: - - ccache - addons: - homebrew: - packages: - - python@3.7 - - ccache - update: true - env: - - MATRIX_EVAL="shopt -s expand_aliases; alias python='/usr/local/opt/python@3.7/bin/python3'; alias pip='/usr/local/opt/python@3.7/bin/pip3';" - - ARCHFLAGS="-std=c++11" - - PIP_UPDATE="1" - - PYTHON_BUILD=true - - # MacOS 10.13 - - # MacOS 10.13, Python 3.9 - - name: "cp39-cp39m-macosx_10_13_x86_64.whl" - os: osx - osx_image: xcode10.1 # macOS 10.13 - cache: - directories: - - ccache - addons: - homebrew: - packages: - - python@3.9 - - ccache - update: true - env: - - MATRIX_EVAL="shopt -s expand_aliases; alias python='/usr/local/opt/python@3.9/bin/python3'; alias pip='/usr/local/opt/python@3.9/bin/pip3';" - - ARCHFLAGS="-std=c++11" - - PIP_UPDATE="1" - - PYTHON_BUILD=true - - # MacOS 10.13, Python 3.8 - - name: "cp38-cp38m-macosx_10_13_x86_64.whl" - os: osx - osx_image: xcode10.1 # macOS 10.13 - cache: - directories: - - ccache - addons: - homebrew: - packages: - - python@3.8 - - ccache - update: true - env: - - MATRIX_EVAL="shopt -s expand_aliases; alias python='/usr/local/opt/python@3.8/bin/python3'; alias pip='/usr/local/opt/python@3.8/bin/pip3';" - - ARCHFLAGS="-std=c++11" - - PIP_UPDATE="1" - - PYTHON_BUILD=true - - # MacOS 10.13, Python 3.7 - - name: "cp37-cp37m-macosx_10_13_x86_64.whl" - os: osx - osx_image: xcode10.1 # macOS 10.13 - cache: - directories: - - ccache - addons: - homebrew: - packages: - - python@3.7 - - ccache - update: true - env: - - MATRIX_EVAL="shopt -s expand_aliases; alias python='/usr/local/opt/python@3.7/bin/python3'; alias pip='/usr/local/opt/python@3.7/bin/pip3';" - - ARCHFLAGS="-std=c++11" - - PIP_UPDATE="1" - - PYTHON_BUILD=true - - # MacOS 10.12, Python 3.7 - - # - name: "klayout python3 osx10.12" - - name: "cp37-cp37m-macosx_10_12_x86_64.whl" - os: osx - osx_image: xcode9.2 # macOS 10.12 - cache: - directories: - - ccache - addons: - homebrew: - packages: - - python3 - - ccache - update: true - env: - - MATRIX_EVAL="shopt -s expand_aliases; alias python='python3'; alias pip='pip3';" - - ARCHFLAGS="-std=c++11" - - PIP_UPDATE="1" - - PYTHON_BUILD=true - - exclude: - - # No XCode 8.2.1 for Mac OS 10.11 - - # - name: "klayout python3 osx10.11" - - name: "cp37-cp37m-macosx_10_11_x86_64.whl" - os: osx - osx_image: xcode8 # macOS 10.11 - cache: - directories: - - ccache - addons: - homebrew: - packages: - - ccache - update: true - env: - - MATRIX_EVAL="brew update; brew config; brew upgrade python; brew postinstall python; ls -l /usr/local/opt/python/libexec/bin/; shopt -s expand_aliases; alias python='/usr/local/opt/python/libexec/bin/python'; alias pip='/usr/local/opt/python/libexec/bin/pip';" - - ARCHFLAGS="-std=c++11" - - PIP_UPDATE="1" - - PYTHON_BUILD=true - - # Python 2 is EOL - - # python 2 osx - - # - name: "klayout python2 osx10.13" - - name: "cp27-cp27m-macosx_10_13_x86_64.whl" - os: osx - osx_image: xcode9.4 # macOS 10.13 - cache: - directories: - - ccache - addons: - homebrew: - packages: - - ccache - update: true - env: - - MATRIX_EVAL="" - - ARCHFLAGS="-std=c++11" - - PIP_UPDATE="1" - - PYTHON_BUILD=true - - # - name: "klayout python2 osx10.12" - - name: "cp27-cp27m-macosx_10_12_x86_64.whl" - os: osx - osx_image: xcode8.3 # macOS 10.12 - cache: - directories: - - ccache - addons: - homebrew: - packages: - - ccache - update: true - env: - - MATRIX_EVAL="brew install python2 || brew link --overwrite python@2" # deficient python2 in travis's xcode8.3 (no ssl) - - ARCHFLAGS="-std=c++11" - - PIP_UPDATE="1" - - PYTHON_BUILD=true - - # - name: "klayout python2 osx10.11" - - name: "cp27-cp27m-macosx_10_11_x86_64.whl" - os: osx - osx_image: xcode8 # macOS 10.11 - cache: - directories: - - ccache - addons: - homebrew: - packages: - - ccache - update: true - env: - - MATRIX_EVAL="" - - ARCHFLAGS="-std=c++11" - - PIP_UPDATE="1" - - PYTHON_BUILD=true - - # KLayout builds not enabled for now on MacOS - - # KLayout builds for mac - # Python 3 - - name: "KLayout macOS 10.13 with py3.7" - os: osx - osx_image: xcode9.4 # macOS 10.13 - cache: - directories: - - ccache - addons: - homebrew: - packages: - - python3 - - qt - - ccache - update: true - env: - - MATRIX_EVAL="" - - PYTHON_VERSION=B37 - - MACOS_VERSION=HighSierra - - KLAYOUT_BUILD=true - - - name: "KLayout macOS 10.12 with py3.7" - os: osx - osx_image: xcode8.3 # macOS 10.12 - cache: - directories: - - ccache - addons: - homebrew: - packages: - - python3 - - qt - - ccache - update: true - env: - - MATRIX_EVAL="" - - PYTHON_VERSION=B37 - - MACOS_VERSION=Sierra - - KLAYOUT_BUILD=true - - - name: "KLayout macOS 10.11 with py3.7" - os: osx - osx_image: xcode8 # macOS 10.11 - cache: - directories: - - ccache - addons: - homebrew: - packages: - - python3 - - ccache - update: true - env: - - MATRIX_EVAL="brew update; brew config; brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/56c500b569c724b049be7ab9e12d9693f85522f9/Formula/qt.rb" # Qt 5.11.2 - - PYTHON_VERSION=B37 - - MACOS_VERSION=ElCapitan - - KLAYOUT_BUILD=true - - # Python 2 - - name: "KLayout macOS 10.13 with py2.7" - os: osx - osx_image: xcode9.4 # macOS 10.13 - cache: - directories: - - ccache - addons: - homebrew: - packages: - - qt - - ccache - update: true - env: - - MATRIX_EVAL="" - - PYTHON_VERSION=Sys - - MACOS_VERSION=HighSierra - - KLAYOUT_BUILD=true - - - name: "KLayout macOS 10.12 with py2.7" - os: osx - osx_image: xcode8.3 # macOS 10.12 - cache: - directories: - - ccache - addons: - homebrew: - packages: - - qt - - ccache - update: true - env: - - MATRIX_EVAL="" - - PYTHON_VERSION=Sys - - MACOS_VERSION=Sierra - - KLAYOUT_BUILD=true - - - name: "KLayout macOS 10.11 with py2.7" - os: osx - osx_image: xcode8 # macOS 10.11 - cache: - directories: - - ccache - addons: - homebrew: - packages: - - ccache - update: true - env: - - MATRIX_EVAL="brew update; brew config; brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/56c500b569c724b049be7ab9e12d9693f85522f9/Formula/qt.rb" # Qt 5.11.2 - - PYTHON_VERSION=Sys - - MACOS_VERSION=ElCapitan - - KLAYOUT_BUILD=true - -before_install: - - env - - gem install dropbox-deployment - - if [ "${TRAVIS_OS_NAME}" == "osx" ]; then - export PATH="/usr/local/opt/ccache/libexec:$PATH"; - mkdir -p ccache; - export CCACHE_DIR="`pwd`/ccache"; - ccache -s; - fi - - eval "${MATRIX_EVAL}" - - if [ "${PIP_UPDATE}" == "1" ]; then - pip --version; - pip install --upgrade pip || sudo pip install --upgrade pip; - pip --version; - pip install --upgrade setuptools wheel || sudo pip install --upgrade setuptools wheel; - fi - - python -c "import distutils.sysconfig as sysconfig; print(sysconfig.__file__)" - -install: - - if [ "$DOCKER_BUILD" = true ]; then - docker pull $DOCKER_IMAGE; - fi - -script: - - if [ "$DOCKER_BUILD" = true ]; then - mkdir -p ccache; - mkdir -p wheelhouse; - docker run --rm -e DOCKER_IMAGE -e PY_VERSION -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD "/io/ci-scripts/docker/docker_build.sh"; - klayout_version=$(python -c 'import setup; print(setup.Config().version())'); - mkdir -p deploy/dist-pymod/$klayout_version; - cp -a wheelhouse/{klayout-*manylinux2014*.whl,*.zip} deploy/dist-pymod/$klayout_version; - if [ "$TEST_IN_HOST" = true ]; then - pip install klayout --no-index -f ./wheelhouse; - python testdata/pymod/import_db.py; - python testdata/pymod/import_rdb.py; - python testdata/pymod/import_tl.py; - python testdata/pymod/import_lib.py; - python testdata/pymod/pya_tests.py; - fi - fi - - if [ "$PYTHON_BUILD" = true ]; then - python setup.py build; - python setup.py bdist_wheel; - python setup.py install; - python setup.py sdist --formats=zip; - python testdata/pymod/import_db.py; - python testdata/pymod/import_rdb.py; - python testdata/pymod/import_tl.py; - python testdata/pymod/import_lib.py; - python testdata/pymod/pya_tests.py; - klayout_version=$(python -c 'import setup; print(setup.Config().version())'); - mkdir -p deploy/dist-pymod/$klayout_version; - cp -a dist/{*.whl,*.zip} deploy/dist-pymod/$klayout_version; - python -c 'import klayout.db as db; print(dir(db))'; - python -c 'import klayout.rdb as rdb; print(dir(rdb))'; - python -c 'import klayout.tl as tl; print(dir(tl))'; - fi - - if [ "$KLAYOUT_BUILD" = true ]; then - ./travis-build.sh; - fi - -before_cache: - - if [ "${TRAVIS_OS_NAME}" == "osx" ]; then - ccache -s; - fi - -after_success: - # upload to dropbox - # need DROPBOX_OAUTH_BEARER environment variable - - dropbox-deployment - - # uploading to pypi using twine - # need TWINE_USERNAME, TWINE_PASSWORD and TWINE_REPOSITORY_URL env variable - - if [ ! -z "$TRAVIS_TAG" ] && [ ! -z "$TWINE_PASSWORD" ] && [[ "$PYTHON_BUILD" = true || "$DOCKER_BUILD" = true ]]; then - pip install -U twine || sudo pip install -U twine; - twine upload --skip-existing deploy/dist-pymod/$klayout_version/*; - fi diff --git a/dropbox-deployment.yml b/dropbox-deployment.yml deleted file mode 100644 index f9ee0f21be..0000000000 --- a/dropbox-deployment.yml +++ /dev/null @@ -1,4 +0,0 @@ -deploy: - dropbox_path: /Builds/klayout # The path to the folder on Dropbox where the files will go - artifacts_path: deploy # can be a single file, or a path - debug: true # if you want to see more logs diff --git a/travis-build.sh b/travis-build.sh deleted file mode 100755 index 9d5acabc32..0000000000 --- a/travis-build.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -set -e - -export PING_SLEEP=30s - -bash -c "while true; do find qt* | wc -l; sleep $PING_SLEEP; done" & -PING_LOOP_PID=$! - -touch build.txt - -# Configure ccache -mkdir -p ccache; -export CCACHE_DIR="`pwd`/ccache" -export QMAKE_CCACHE=1 - -# Show ccache stats -echo "Cache stats:" -ccache -s - -echo "build" -make build >> build.txt 2>&1 || tail -500 build.txt -echo "deploy" -make deploy >> build.txt 2>&1 || tail -500 build.txt -echo "test" -make test >> build.txt 2>&1 || tail -500 build.txt -echo "dropbox-deploy" -make dropbox-deploy - -# Show ccache stats -echo "Cache stats:" -ccache -s - -echo "build finished" - -kill $PING_LOOP_PID - -exit 0