Skip to content

Commit a64ce69

Browse files
authored
Merge pull request #58 from nono/update-travis
Clean travis configuration
2 parents 5250488 + 8e8cf2b commit a64ce69

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

.travis.yml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
sudo: true
22

3-
env:
4-
matrix:
5-
- export NODE_VERSION="6" CC=clang CXX=clang++ npm_config_clang=1
6-
- export NODE_VERSION="8" CC=clang CXX=clang++ npm_config_clang=1
7-
- export NODE_VERSION="10" CC=clang CXX=clang++ npm_config_clang=1
3+
os:
4+
- linux
5+
- osx
6+
7+
language: node_js
8+
9+
node_js:
10+
- 6
11+
- 8
12+
- 10
813

9-
branches:
10-
only:
11-
- master
14+
env:
15+
global:
16+
- CC=clang
17+
- CXX=clang++
18+
- npm_config_clang=1
1219

1320
git:
1421
depth: 10
@@ -17,19 +24,9 @@ compiler: clang
1724

1825
before_install:
1926
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p; fi
20-
- git clone https://github.com/creationix/nvm.git ./.nvm
21-
- source ./.nvm/nvm.sh
22-
- nvm install $NODE_VERSION
23-
- nvm use $NODE_VERSION
2427

2528
install:
2629
- npm install
2730

2831
script:
2932
- npm test
30-
31-
os:
32-
- linux
33-
- osx
34-
35-
sudo: false

0 commit comments

Comments
 (0)