-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
62 lines (50 loc) · 1.41 KB
/
.travis.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
language: node_js
env:
global:
- CC_TEST_REPORTER_ID=c33e0157337760958191e73532ea32aca9e54dee6edd7a941e84f0e33bbe3165
#matrix:
# allow_failures:
# - node_js: 14
node_js:
- 12
before_script:
# Install meteor
- curl https://install.meteor.com | /bin/sh
# Add meteor to path (instead of asking for sudo in the Travis container)
# We can then use the faster container infrastructure - http://docs.travis-ci.com/user/workers/container-based-infrastructure/
- export PATH=$HOME/.meteor:$PATH
# Ensure NODE_MODULE_VERSION matches Meteor.
- meteor npm i -g yarn
- meteor yarn
- meteor yarn ts-compile
# Start the test harness.
- cd test_harness
- date
- meteor yarn
- date
- meteor run --port 3100&
- METEOR_PID=$!
# Need to wait for Meteor availability before the integration tests can run.
- sleep 90
- cd ..
# Codecov preparation.
- npm install -g codecov
# CodeClimate preparation.
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter -d before-build
- date
cache:
directories:
- node_modules
- test_harness/node_modules
script:
meteor yarn test-ci
after_script:
- date
# Stop the test harness.
- kill $METEOR_PID
# CodeCode report.
- codecov
# CodeClimate report.
- ./cc-test-reporter after-build -d --exit-code $TRAVIS_TEST_RESULT