Skip to content

Commit f0e067a

Browse files
committed
Seperate before_install and before_script.
1 parent c688f04 commit f0e067a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ addons:
2222
- g++-4.8
2323
- gcc-4.8
2424

25-
before_script:
25+
before_install:
2626
# reinstall latest nvm
2727
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh
2828
- nvm install $TRAVIS_NODE_VERSION
@@ -36,6 +36,7 @@ before_script:
3636
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi
3737
- $CXX --version
3838

39+
before_script:
3940
# Start xvfb
4041
- export DISPLAY=:99.0
4142
- sh -e /etc/init.d/xvfb start

0 commit comments

Comments
 (0)