Skip to content

Commit 6fb0b6a

Browse files
authored
Merge pull request #38 from mringer/circleci-20-test
Upgrade to CircleCI 2.0 config file
2 parents 50e7b27 + d2653f1 commit 6fb0b6a

File tree

1 file changed

+43
-13
lines changed

1 file changed

+43
-13
lines changed

circle.yml

+43-13
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,43 @@
1-
machine:
2-
node:
3-
version: 5.5.0
4-
5-
dependencies:
6-
override:
7-
- make configure
8-
9-
test:
10-
override:
11-
- make lint
12-
- make
13-
- make test
1+
version: 2
2+
jobs:
3+
build:
4+
working_directory: ~/apollo-resolvers
5+
parallelism: 1
6+
shell: /bin/bash --login
7+
environment:
8+
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
9+
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
10+
docker:
11+
- image: circleci/build-image:ubuntu-14.04-XXL-upstart-1189-5614f37
12+
command: /sbin/init
13+
steps:
14+
- checkout
15+
- run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
16+
- run:
17+
working_directory: ~/apollo-resolvers
18+
command: nvm install 5.5.0 && nvm alias default 5.5.0
19+
# Dependencies
20+
# Restore the dependency cache
21+
- restore_cache:
22+
keys:
23+
- v1-dep-{{ .Branch }}-
24+
- v1-dep-master-
25+
- v1-dep-
26+
- run: make configure
27+
# Save dependency cache
28+
- save_cache:
29+
key: v1-dep-{{ .Branch }}-{{ epoch }}
30+
paths:
31+
- ./node_modules
32+
- run: make lint
33+
- run: make
34+
- run: make test
35+
# Teardown
36+
# Save test results
37+
- store_test_results:
38+
path: /tmp/circleci-test-results
39+
# Save artifacts
40+
- store_artifacts:
41+
path: /tmp/circleci-artifacts
42+
- store_artifacts:
43+
path: /tmp/circleci-test-results

0 commit comments

Comments
 (0)