Skip to content

Commit

Permalink
Make Travis-CI faster
Browse files Browse the repository at this point in the history
  • Loading branch information
k-takata committed Jul 31, 2015
1 parent 40f7a15 commit b5b6ada
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,18 @@ env:
build_command: "make -j 4"
branch_pattern: master

sudo: false

addons:
apt:
packages:
- lcov
- binutils-mingw-w64-i686
- gcc-mingw-w64-i686

# Only with gcc get the mingw-w64 cross compilers
before_install:
- 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
- if [ $CC = 'gcc' ] && [ $TRAVIS_OS_NAME = 'linux' ]; then sudo apt-get install -qq lcov rubygems; gem install lcoveralls; fi
- if [ $CC = 'gcc' ] && [ $TRAVIS_OS_NAME = 'linux' ]; then gem install lcoveralls; fi
# Build and run tests. Only with gcc cross compile
script:
- if [ $CC = 'gcc' ] && [ $TRAVIS_OS_NAME = 'linux' ]; then make -f mk_mingw.mak CC=i686-w64-mingw32-gcc; fi
Expand Down

0 comments on commit b5b6ada

Please sign in to comment.