Skip to content

Commit

Permalink
fix(ci): migrate to cci
Browse files Browse the repository at this point in the history
  • Loading branch information
WesleyCharlesBlake committed Mar 13, 2019
1 parent e4e71c2 commit 1ac0bff
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 14 deletions.
81 changes: 81 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
version: 2.1
executors:
base-node:
environment:
FOO: bar
docker:
- image: poetapp/base:10.14.2-alpine

jobs:
build:
executor: base-node
steps:
- checkout
- restore_cache:
key: v1-{{ checksum "package-lock.json" }}
- run:
name: Install deps
command: npm install
- save_cache:
key: v1-{{ checksum "package-lock.json" }}
paths:
- ./node_modules

lint:
executor: base-node
steps:
- checkout
- restore_cache:
key: v1-{{ checksum "package-lock.json" }}
- run:
name: Lint
command: npm run lint

package:
executor: base-node
steps:
- checkout
- restore_cache:
key: v1-{{ checksum "package-lock.json" }}
- run:
name: Build dist
command: npm run build

coverage:
executor: base-node
steps:
- checkout
- restore_cache:
key: v1-{{ checksum "package-lock.json" }}
- run:
name: Build dist
command: npm run coverage

release:
executor: base-node
steps:
- checkout
- restore_cache:
key: v1-{{ checksum "package-lock.json" }}
- run:
name: Build dist
command: npx semantic-release

workflows:
version: 2
build_and_test:
jobs:
- build
- lint:
requires:
- build
- package:
requires:
- build
- release:
context: semver
requires:
- package
filters:
branches:
only: master
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

0 comments on commit 1ac0bff

Please sign in to comment.