Skip to content

Commit

Permalink
travis.yml: only run linux commands in linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Reza Jelveh committed Feb 25, 2015
1 parent 9dbddfb commit 8f419cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ env:

# Only with gcc get the mingw-w64 cross compilers
before_install:
- if [ $CC = 'gcc' ]; then sudo apt-get update -qq; sudo apt-get install -y binutils-mingw-w64-i686 gcc-mingw-w64-i686; fi
- if [ $CC = 'gcc' ] && [ $TRAVIS_OS_NAME = 'linux' ]; then sudo apt-get update -qq; sudo apt-get install -y binutils-mingw-w64-i686 gcc-mingw-w64-i686; fi

# Build and run tests. Only with gcc cross compile
script:
- autoreconf -f -i -v
- ./configure
- make -j2
- make check TRAVIS=1
- if [ $CC = 'gcc' ]; then make distclean; make -f mk_mingw.mak CC=i686-w64-mingw32-gcc; fi
- if [ $CC = 'gcc' ] && [ $TRAVIS_OS_NAME = 'linux' ]; then make distclean; make -f mk_mingw.mak CC=i686-w64-mingw32-gcc; fi

0 comments on commit 8f419cd

Please sign in to comment.