forked from firefox-devtools/debugger
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yml
More file actions
80 lines (73 loc) · 2.6 KB
/
config.yml
File metadata and controls
80 lines (73 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: 2
jobs:
build:
working_directory: ~/debugger
parallelism: 1
shell: /bin/bash --login
environment:
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
DOWNLOADS_PATH: $HOME/downloads
YARN_PATH: $HOME/.yarn
YARN_VERSION: 1.9.4
PATH:
${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
JEST_JUNIT_OUTPUT: $CIRCLE_TEST_REPORTS/junit.xml
NVM_DIR: ~/.nvm
docker:
- image: node:10.15.0
# machine: true
steps:
- checkout
- run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
- run:
working_directory: ~/debugger
command: mkdir -p $DOWNLOADS_PATH
- run:
working_directory: ~/debugger
command: mkdir -p $YARN_PATH
- run: cp configs/ci.json configs/local.json
- restore_cache:
keys:
# This branch if available
- v1-dep-{{ .Branch }}-
# Default branch if not
- v1-dep-master-
# Any branch if there are none on the default branch - this should be unnecessary if you have your default branch configured correctly
- v1-dep-
- run: ./bin/ci/install-yarn
- run:
yarn global add greenkeeper-lockfile@github:greenkeeperio/greenkeeper-lockfile#4b693e9
- run: yarn
- run: yarn global add flow-coverage-report
# Save dependency cache
- save_cache:
key: v1-dep-{{ .Branch }}-{{ epoch }}
paths:
- ~/.cache/yarn
- ~/.yarn
- ./node_modules
- run: greenkeeper-lockfile-update
- run: mkdir -p $CIRCLE_TEST_REPORTS/flow-coverage
- run: mkdir -p $CIRCLE_TEST_REPORTS/jest-coverage
- run:
command: yarn test -i --ci --reporters=default --reporters=jest-junit
environment:
JEST_JUNIT_OUTPUT: "reports/junit/js-test-results.xml"
- run: yarn license-check
- run: yarn lint
- run: yarn flow
- run: yarn flow-coverage -- -t json -o $CIRCLE_TEST_REPORTS/flow-coverage
- run: yarn check --integrity
- run:
bash <(curl -s https://codecov.io/bash) -f $CIRCLE_TEST_REPORTS/jest-coverage/coverage-final.json
# Deployment
- store_test_results:
path: /tmp/circleci-test-results
# Save artifacts
- store_artifacts:
path: /tmp/circleci-artifacts
- store_artifacts:
path: yarn-error.log
- store_artifacts:
path: /tmp/circleci-test-results