forked from sass/node-sass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
123 lines (115 loc) · 2.38 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
language: node_js
compiler: gcc
env:
global:
- SKIP_SASS_BINARY_DOWNLOAD_FOR_CI=true
jobs:
include:
- stage: test
node_js: "node"
os: linux
before_script: npm run lint || exit 1;
after_success: npm run-script coverage;
- stage: platform-test
node_js: "node"
os: osx
- stage: platform-test
node_js: "12"
os: linux
- stage: platform-test
node_js: "12"
os: osx
- stage: platform-test
node_js: "11"
os: linux
- stage: platform-test
node_js: "11"
os: osx
- stage: platform-test
node_js: "10"
os: linux
- stage: platform-test
node_js: "10"
os: osx
- stage: platform-test
node_js: "9"
os: linux
- stage: platform-test
node_js: "9"
os: osx
- stage: platform-test
node_js: "8"
os: linux
- stage: platform-test
node_js: "8"
os: osx
- stage: platform-test
node_js: "7"
os: linux
- stage: platform-test
node_js: "7"
os: osx
- stage: platform-test
node_js: "6"
os: linux
- stage: platform-test
node_js: "6"
os: osx
- stage: platform-test
node_js: "4"
os: linux
- stage: platform-test
node_js: "4"
os: osx
- stage: platform-test
node_js: "0.12"
os: linux
- stage: platform-test
node_js: "0.10"
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.7
- g++-4.7
- gcc-4.9
- g++-4.9
- gcc-6
- g++-6
before_install:
- echo $TRAVIS_NODE_VERSION
- npm config set python `which python`
- if [ $TRAVIS_OS_NAME == "linux" ]; then
if [[ $(node -v) =~ v1[23] ]]; then
export CC="gcc-6";
export CXX="g++-6";
export LINK="gcc-6";
export LINKXX="g++-6";
elif [[ $(node -v) =~ v1[01] ]]; then
export CC="gcc-4.9";
export CXX="g++-4.9";
export LINK="gcc-4.9";
export LINKXX="g++-4.9";
else
export CC="gcc-4.7";
export CXX="g++-4.7";
export LINK="gcc-4.7";
export LINKXX="g++-4.7";
fi
fi
- nvm --version
- node --version
- npm --version
- ${CC:-gcc} --version
- ${CXX:-g++} --version
install:
- npm install
script:
- npm test
cache:
directories:
- $HOME/.node-gyp
- $HOME/.npm
- node_modules