forked from firefox-devtools/debugger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
60 lines (55 loc) · 1.46 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
machine:
node:
version: 8.5.0
services:
- docker
environment:
DOWNLOADS_PATH: "$HOME/downloads"
YARN_PATH: "$HOME/.yarn"
YARN_VERSION: 1.3.2
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:
pre:
- greenkeeper-lockfile-update
override:
- mkdir -p $CIRCLE_TEST_REPORTS/flow-coverage
- mkdir -p $CIRCLE_TEST_REPORTS/jest-coverage
- jest -i --no-colors --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
post:
- yarn flow-coverage -- -t json -o $CIRCLE_TEST_REPORTS/flow-coverage
- yarn check --integrity
- bash <(curl -s https://codecov.io/bash) -f $CIRCLE_TEST_REPORTS/jest-coverage/coverage-final.json
dependencies:
pre:
- ./bin/ci/install-yarn
- yarn global add greenkeeper-lockfile@github:jasonLaster/greenkeeper-lockfile#146f2fcc27577
cache_directories:
- ~/.cache/yarn
- ~/.yarn
override:
- yarn install
- yarn global add flow-coverage-report
general:
artifacts:
- "yarn-error.log"
experimental:
notify:
branches:
only:
- master
deployment:
greenkeeper:
branch: /greenkeeper\/.*/
commands:
- greenkeeper-lockfile-upload