forked from springernature/shunter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (45 loc) · 1.16 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
# Build matrix
language: node_js
matrix:
include:
# Lint only in Node.js 0.10
- node_js: '0.10'
env: LINT=true
# Run tests in Node.js 0.10
- node_js: '0.10'
# Run tests in Node.js 0.12
- node_js: '0.12'
# Run tests in Node.js 4.x (dependencies require GCC 4.8)
- node_js: '4'
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
# Run tests in Node.js 5.x (dependencies require GCC 4.8)
- node_js: '5'
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
# Restrict builds on branches
branches:
only:
- master
- /^\d+\.\d+\.\d+$/
# Before install
before_install:
# Use GCC 4.8 if it's available
- 'if [ ! `which gcc-4.8` == "" ]; then export CXX=g++-4.8 && export CC=gcc-4.8; fi'
# Install coveralls
- npm install coveralls
# Build script
script:
- 'if [ $LINT ]; then make lint; fi'
- 'if [ ! $LINT ]; then make lcov-levels; fi'
- 'if [ ! $LINT ]; then cat ./coverage/lcov.info | ./node_modules/.bin/coveralls; fi'