From bc93a4eaa91c77c200c046bee7410eb7824ad462 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Tue, 21 May 2019 12:41:05 +0200 Subject: [PATCH] fix: release on circleci (#3775) Moves semantic releasing from TravisCI to CircleCI --- .circleci/config.yml | 19 ++++++++++++++++++- .travis.yml | 45 -------------------------------------------- 2 files changed, 18 insertions(+), 46 deletions(-) delete mode 100644 .travis.yml diff --git a/.circleci/config.yml b/.circleci/config.yml index afdcc877d9..0e4a8d969d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -55,8 +55,25 @@ jobs: command: | bash <(curl -s https://codecov.io/bash) + release: + docker: + - image: node:10.15.3@sha256:2939bbf1f233c88ed1bc5fec51d4e6ac59beeb397b6b81371c4c576e4606de19 + steps: + - checkout + - run: yarn install + - run: yarn build + - run: yarn semantic-release + - run: curl -X POST -d '{}' $NETLIFY_DEPLOY_WEBHOOK + workflows: version: 2 - build_and_test: + test_and_release: jobs: - test_node_10 + - release: + requires: + - test_node_10 + filters: + branches: + only: + - master diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 369c946505..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,45 +0,0 @@ -notifications: - email: false - -language: node_js - -node_js: - - 'lts/dubnium' - -sudo: false - -branches: - only: - - master - - v16 - -if: tag IS blank - -before_install: - - curl -o- -L https://yarnpkg.com/install.sh | bash - - export PATH="$HOME/.yarn/bin:$PATH" - - python --version - - git --version - -install: - - yarn install --frozen-lockfile - - pip install --user -r requirements.txt - -cache: - yarn: true - directories: - - '.cache' - - '.eslintcache' - - 'node_modules' - -script: - - yarn lint - - yarn test-schema - - yarn build - -deploy: - provider: script - script: curl -X POST -d '{}' $NETLIFY_DEPLOY_WEBHOOK && yarn semantic-release - skip_cleanup: true - on: - branch: master -- GitLab