forked from firefox-devtools/debugger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
61 lines (56 loc) · 1.5 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
machine:
node:
version: 7.7.2
services:
- docker
environment:
DOWNLOADS_PATH: "$HOME/downloads"
YARN_PATH: "$HOME/.yarn"
YARN_VERSION: 0.28.4
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/mocha
- 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