forked from firefox-devtools/debugger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
62 lines (57 loc) · 1.43 KB
/
circle.yml
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
machine:
node:
version: 7.7.2
services:
- docker
environment:
DOWNLOADS_PATH: "$HOME/downloads"
YARN_PATH: "$HOME/.yarn"
YARN_VERSION: 0.24.5
PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
post:
- mkdir -p $DOWNLOADS_PATH
- mkdir -p $YARN_PATH
checkout:
post:
- cp configs/ci.json configs/local.json
test:
override:
- mkdir -p $CIRCLE_TEST_REPORTS/mocha
- mkdir -p $CIRCLE_TEST_REPORTS/flow-coverage
- mkdir -p $CIRCLE_TEST_REPORTS/jest-coverage
- jest -i --testResultsProcessor jest-junit-reporter --coverage --coverageDirectory=$CIRCLE_TEST_REPORTS/jest-coverage
- yarn license-check
- yarn lint-css
- yarn lint-js
- yarn lint-md
- yarn flow
- yarn snapshot
- ./bin/run-mochitests-docker
post:
- yarn flow-coverage -- -t json -o $CIRCLE_TEST_REPORTS/flow-coverage
- yarn check
- bash <(curl -s https://codecov.io/bash) -f $CIRCLE_TEST_REPORTS/jest-coverage/coverage-final.json
dependencies:
pre:
- ./bin/install-yarn
cache_directories:
- ~/downloads
- ~/.cache/yarn
- ~/.yarn
override:
- yarn install
- yarn global add flow-coverage-report
- ./bin/update-docker
general:
artifacts:
- "yarn-error.log"
experimental:
notify:
branches:
only:
- master
deployment:
greenkeeper:
branch: /greenkeeper\/.*/
commands:
- ./bin/update-yarn-lock-file