Skip to content

Commit c720427

Browse files
committed
Only apt-get in Linux
1 parent 12514fc commit c720427

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ before_install:
77
- source ./.nvm/nvm.sh
88
- nvm install $NODE_VERSION
99
- nvm use $NODE_VERSION
10-
- "sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test"
11-
- "sudo apt-get -qq update"
12-
- "sudo apt-get -qq install g++-4.8"
10+
- if [ $TRAVIS_OS_NAME == "linux" ]; then
11+
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
12+
sudo apt-get -qq update;
13+
sudo apt-get -qq install g++-4.8;
14+
fi
1315
- "export CXX='g++-4.8'"
1416
- "export JOBS=4"
17+
- npm install
1518
# This is a random private key used purely for testing.
1619
before_script:
1720
- echo -e "Host *\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config

0 commit comments

Comments
 (0)