From b5b6adad06cdee5478716d3c0281613e4cb4eccf Mon Sep 17 00:00:00 2001 From: "K.Takata" Date: Thu, 30 Jul 2015 22:19:18 +0900 Subject: [PATCH] Make Travis-CI faster See: http://docs.travis-ci.com/user/migrating-from-legacy/ --- .travis.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 75a4ec9892..549923b9ac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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