Skip to content

Commit 1ee211f

Browse files
committed
Configure travis to not use coverage and gcc4.9 during tagged releases
1 parent 8e5f335 commit 1ee211f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,18 @@ before_install:
3838

3939
- nvm install $NODE_VERSION
4040

41-
- if [ $TRAVIS_OS_NAME == "linux" ]; then
41+
- if [ $TRAVIS_OS_NAME == "linux" ] && [ ! "$TRAVIS_TAG" ]; then
4242
export GYP_DEFINES="use_obsolete_asm=true";
4343
export JOBS=4;
4444
export CC=/usr/bin/gcc-4.9;
4545
export CXX=/usr/bin/g++-4.9;
46+
else
47+
export GYP_DEFINES="use_obsolete_asm=true";
48+
export JOBS=4;
4649
fi
4750

48-
- if [ $TRAVIS_OS_NAME == "linux" ] && [ $NODE_VERSION == "0.12" ]; then
51+
- if [ $TRAVIS_OS_NAME == "linux" ] && [ $NODE_VERSION == "0.12" ] && [ ! "$TRAVIS_TAG" ]; then
52+
echo "Installing and configuring native source code coverage";
4953
export GYP_DEFINES="coverage=1 use_obsolete_asm=true";
5054
wget http://downloads.sourceforge.net/ltp/lcov-1.10.tar.gz;
5155
tar xvfz lcov-1.10.tar.gz;

0 commit comments

Comments
 (0)