From f1bac08c4533de48a5de504c75972a89a98157be Mon Sep 17 00:00:00 2001 From: Ivan Ukhov Date: Mon, 22 Apr 2024 10:29:42 +0200 Subject: [PATCH] Remove Travis --- .github/workflows/rust.yml | 4 +- .travis.yml | 39 ------------------- Makefile | 4 +- ...{api-list_travis.yaml => api-list-ci.yaml} | 0 4 files changed, 5 insertions(+), 42 deletions(-) delete mode 100644 .travis.yml rename etc/api/{api-list_travis.yaml => api-list-ci.yaml} (100%) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a16e19469d..fd911fe7d1 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -18,7 +18,9 @@ jobs: build-and-test: runs-on: ubuntu-latest env: - TRAVIS: true # emulate CI, some code depends on it to do less work + # The environment variable is set to test only on a few selected APIs, + # speeding up the integration process. See etc/api/api-list-ci.yaml. + CI: true steps: - uses: actions/checkout@v2 - uses: Swatinem/rust-cache@v2 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index afef536cef..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,39 +0,0 @@ -dist: bionic -sudo: false - -language: rust -os: - - osx -rust: - - stable - - nightly -matrix: - allow_failures: - - rust: nightly - -before_install: - - pyenv versions - - pyenv install --skip-existing "${PYENV_VERSION}" - - pyenv versions - - pyenv global "${PYENV_VERSION}" - - pyenv version -script: - - make test-gen - - make gen-all-cli cargo-api ARGS=test - - make cargo-api ARGS=doc - - "if [[ $TRAVIS_RUST_VERSION = nightly ]]; then cargo test; fi" - -after_success: - - make codecov-upload - -env: - global: - - PYENV_VERSION: 2.7.13 - - PYENV_ROOT: $HOME/.pyenv - - secure: Plj5DqAQX/4+KPM+nOAZ2sCbGIsoSrHo1YggfesQnU7paR734XO/4IayWnsNO/3q6bDi4GIcn56RUZAD3xBJJBNLia2CYIickIIYORRqLWbLdbzQaxBbD670ahtzEuUSFJTRKURPwFteAnsWYgNMNzwXOVNwLS5IUBqWTcS+N0g= - -cache: - cargo: true - pip: true - directories: - - $HOME/.pyenv diff --git a/Makefile b/Makefile index 879a6ce82d..8883d5dd04 100644 --- a/Makefile +++ b/Makefile @@ -31,8 +31,8 @@ API_SHARED_INFO = $(API_DIR)/shared.yaml TYPE_API_INFO = $(API_DIR)/type-api.yaml TYPE_CLI_INFO = $(API_DIR)/type-cli.yaml API_LIST = $(API_DIR)/ -ifdef TRAVIS -API_LIST := $(API_LIST)api-list_travis.yaml +ifdef CI +API_LIST := $(API_LIST)api-list-ci.yaml else API_LIST := $(API_LIST)api-list.yaml endif diff --git a/etc/api/api-list_travis.yaml b/etc/api/api-list-ci.yaml similarity index 100% rename from etc/api/api-list_travis.yaml rename to etc/api/api-list-ci.yaml