@@ -10,64 +10,71 @@ jobs:
10
10
DOWNLOADS_PATH : $HOME/downloads
11
11
YARN_PATH : $HOME/.yarn
12
12
YARN_VERSION : 1.9.4
13
- PATH : ${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
13
+ PATH :
14
+ ${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
14
15
JEST_JUNIT_OUTPUT : $CIRCLE_TEST_REPORTS/junit.xml
15
16
NVM_DIR : ~/.nvm
16
17
17
18
docker :
18
19
- image : node:11.2.0
19
20
# machine: true
20
21
steps :
21
- - checkout
22
- - run : mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
23
- - run :
24
- working_directory : ~/debugger.html
25
- command : mkdir -p $DOWNLOADS_PATH
26
- - run :
27
- working_directory : ~/debugger.html
28
- command : mkdir -p $YARN_PATH
29
- - run : cp configs/ci.json configs/local.json
30
- - restore_cache :
31
- keys :
32
- # This branch if available
33
- - v1-dep-{{ .Branch }}-
34
- # Default branch if not
35
- - v1-dep-master-
36
- # Any branch if there are none on the default branch - this should be unnecessary if you have your default branch configured correctly
37
- - v1-dep-
38
- - run : ./bin/ci/install-yarn
39
- - run : yarn global add greenkeeper-lockfile@github:greenkeeperio/greenkeeper-lockfile#4b693e9
40
- - run : yarn
41
- - run : yarn global add flow-coverage-report
42
-
43
- # Save dependency cache
44
- - save_cache :
45
- key : v1-dep-{{ .Branch }}-{{ epoch }}
46
- paths :
47
- - ~/.cache/yarn
48
- - ~/.yarn
49
- - ./node_modules
50
-
51
- - run : greenkeeper-lockfile-update
52
-
53
- - run : mkdir -p $CIRCLE_TEST_REPORTS/flow-coverage
54
- - run : mkdir -p $CIRCLE_TEST_REPORTS/jest-coverage
55
- - run : yarn test -i --no-colors --testResultsProcessor="jest-junit" --coverage --coverageDirectory=$CIRCLE_TEST_REPORTS/jest-coverage
56
- - run : yarn license-check
57
- - run : yarn lint
58
- - run : yarn flow
59
-
60
- - run : yarn flow-coverage -- -t json -o $CIRCLE_TEST_REPORTS/flow-coverage
61
- - run : yarn check --integrity
62
- - run : bash <(curl -s https://codecov.io/bash) -f $CIRCLE_TEST_REPORTS/jest-coverage/coverage-final.json
63
-
64
- # Deployment
65
- - store_test_results :
66
- path : /tmp/circleci-test-results
67
- # Save artifacts
68
- - store_artifacts :
69
- path : /tmp/circleci-artifacts
70
- - store_artifacts :
71
- path : yarn-error.log
72
- - store_artifacts :
73
- path : /tmp/circleci-test-results
22
+ - checkout
23
+ - run : mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
24
+ - run :
25
+ working_directory : ~/debugger.html
26
+ command : mkdir -p $DOWNLOADS_PATH
27
+ - run :
28
+ working_directory : ~/debugger.html
29
+ command : mkdir -p $YARN_PATH
30
+ - run : cp configs/ci.json configs/local.json
31
+ - restore_cache :
32
+ keys :
33
+ # This branch if available
34
+ - v1-dep-{{ .Branch }}-
35
+ # Default branch if not
36
+ - v1-dep-master-
37
+ # Any branch if there are none on the default branch - this should be unnecessary if you have your default branch configured correctly
38
+ - v1-dep-
39
+ - run : ./bin/ci/install-yarn
40
+ - run :
41
+ yarn global add greenkeeper-lockfile@github:greenkeeperio/greenkeeper-lockfile#4b693e9
42
+ - run : yarn
43
+ - run : yarn global add flow-coverage-report
44
+
45
+ # Save dependency cache
46
+ - save_cache :
47
+ key : v1-dep-{{ .Branch }}-{{ epoch }}
48
+ paths :
49
+ - ~/.cache/yarn
50
+ - ~/.yarn
51
+ - ./node_modules
52
+
53
+ - run : greenkeeper-lockfile-update
54
+
55
+ - run : mkdir -p $CIRCLE_TEST_REPORTS/flow-coverage
56
+ - run : mkdir -p $CIRCLE_TEST_REPORTS/jest-coverage
57
+ - run :
58
+ command : yarn test -i --ci --reporters=default --reporters=jest-junit
59
+ environment :
60
+ JEST_JUNIT_OUTPUT : " reports/junit/js-test-results.xml"
61
+
62
+ - run : yarn license-check
63
+ - run : yarn lint
64
+ - run : yarn flow
65
+
66
+ - run : yarn flow-coverage -- -t json -o $CIRCLE_TEST_REPORTS/flow-coverage
67
+ - run : yarn check --integrity
68
+ - run :
69
+ bash <(curl -s https://codecov.io/bash) -f $CIRCLE_TEST_REPORTS/jest-coverage/coverage-final.json
70
+
71
+ # Deployment
72
+ - store_test_results :
73
+ path : /tmp/circleci-test-results
74
+ # Save artifacts
75
+ - store_artifacts :
76
+ path : /tmp/circleci-artifacts
77
+ - store_artifacts :
78
+ path : yarn-error.log
79
+ - store_artifacts :
80
+ path : /tmp/circleci-test-results
0 commit comments