Skip to content
Snippets Groups Projects
Commit 56df9757 authored by Scott Cooper's avatar Scott Cooper
Browse files

use circle instead of travis

parent d372d9d6
No related branches found
No related tags found
No related merge requests found
language: node_js
node_js:
- node
- lts/*
cache:
directories:
- "$HOME/.npm"
script:
- npm run lint
- npm run test:ci
- npm run build
after_success:
- bash <(curl -s https://codecov.io/bash)
jobs:
include:
- stage: release
node_js: lts/*
script:
- npm run build
- npm run semantic-release
- stage: deploy
node_js: lts/*
script:
- npm run ghpages
deploy:
provider: pages
skip_cleanup: true
local_dir: dist
github_token: $GH_TOKEN
on:
branch: master
notifications:
email: false
version: 2.1
jobs:
test:
docker:
- image: circleci/node:10-browsers
environment:
CHROME_BIN: '/usr/bin/google-chrome'
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: npm-install
command: npm install
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
name: test
command: npm run test:ci
- run:
name: lint
command: npm run lint
- run:
name: codecov
command: bash <(curl -s https://codecov.io/bash)
release:
docker:
- image: circleci/node:10
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run: npm install
- run: npm run build
- run: npm run semantic-release
workflows:
version: 2
test_and_release:
# Run the test jobs first, then the release only when all the test jobs are successful
jobs:
- test
- release:
filters:
branches:
only:
- master
requires:
- test
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment