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:
parent
5faf520067
commit
47c2a2e411
|
@ -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"
|
12
circle.yml
12
circle.yml
|
@ -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
|
Loading…
Reference in New Issue