diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..289272e18 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,64 @@ +version: 2 + +refs: + container: &container + docker: + - image: node:14 + working_directory: ~/repo + steps: + - &Versions + run: + name: Versions + command: node -v && npm -v && yarn -v + - &Install + run: + name: Install Dependencies + command: yarn install --pure-lockfile + - &Build + run: + name: Build + command: yarn build + - &Test + run: + name: Test + command: yarn test +jobs: + all: + <<: *container + steps: + - checkout + - *Versions + - *Install + - *Build + - *Test + master: + <<: *container + steps: + - checkout + - *Versions + - *Install + - *Build + - *Test + - run: + name: Release + command: npx semantic-release + +workflows: + version: 2 + all: + jobs: + - all: + context: common-env-vars + filters: + branches: + ignore: + - master + - next + - gh-pages + master: + jobs: + - master: + context: common-env-vars + filters: + branches: + only: master diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 85dcc1c24..000000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -language: node_js -os: - - linux -cache: - yarn: true - directories: - - ~/.npm -notifications: - email: false -node_js: - - '12' - - '10' - - '8' -script: - - yarn test - - yarn build -matrix: - allow_failures: [] - fast_finish: true -after_success: - - npx semantic-release -branches: - except: - - /^v\d+\.\d+\.\d+$/