forked from FormidableLabs/builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (33 loc) · 828 Bytes
/
.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
language: node_js
node_js:
- "0.10"
- "0.12"
- "4"
- "5"
- "6"
# Use container-based Travis infrastructure.
sudo: false
branches:
only:
- master
env:
matrix:
- TEST_NPM_VERSION=2
- TEST_NPM_VERSION=3
- TEST_NPM_VERSION=4
before_install:
# GUI for real browsers.
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# Use the requested version of npm
- npm install -g "npm@$TEST_NPM_VERSION"
script:
- npm --version
- npm run builder:check-ci
# Do some primitive bash functional tests.
- bash test/func/test.sh
# Manually send coverage reports to coveralls.
# - Aggregate client results
# - Single server and func test results
- ls coverage/server/lcov.info | cat
- cat coverage/server/lcov.info | node_modules/.bin/coveralls || echo "Coveralls upload failed"