-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy path.travis.yml
More file actions
34 lines (29 loc) · 778 Bytes
/
Copy path.travis.yml
File metadata and controls
34 lines (29 loc) · 778 Bytes
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
language: node_js
node_js:
- "8.11.2"
services:
- mongodb
before_script:
- yarn install
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- yarn --cwd client build
- yarn --cwd client lint
- yarn --cwd client test --coverage
- yarn --cwd server build
- yarn --cwd server lint
- yarn --cwd server test
- yarn --cwd docs build
after_script:
- yarn coverage
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
cache:
yarn: true
directories:
- client/node_modules
- server/node_modules
env:
global:
- CC_TEST_REPORTER_ID=654a8862c4f6aee42803f7759805fde13aa5dc419be37e0d901068df427372a9