ci: switch CircleCI to 2.0

This lets us use a docker container to provide things like the Bazel build tool
This commit is contained in:
Alex Eagle 2017-06-02 17:03:15 -07:00 committed by Alex Rickabaugh
parent 5faf520067
commit 47c2a2e411
2 changed files with 20 additions and 12 deletions

20
.circleci/config.yml Normal file
View File

@ -0,0 +1,20 @@
version: 2
jobs:
build:
working_directory: ~/ng
docker:
- image: alexeagle/ngcontainer
steps:
- checkout
- restore_cache:
key: angular-{{ .Branch }}-{{ checksum "npm-shrinkwrap.json" }}
- run: npm install
- run: npm run postinstall
- run: ./node_modules/.bin/gulp lint
# Build twice, workaround for
# https://github.com/bazelbuild/bazel/issues/3114
- run: bazel build ... || bazel build ...
- save_cache:
key: angular-{{ .Branch }}-{{ checksum "npm-shrinkwrap.json" }}
paths:
- "node_modules"

View File

@ -1,12 +0,0 @@
machine:
node:
version: 6.9.5
dependencies:
pre:
- npm install -g npm@3.10.7
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.21.3
test:
override:
- gulp lint