From 0e40470931333c9b6db12f70572e178e73210701 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 10 Jan 2017 12:00:10 +0530 Subject: [PATCH] ... --- .travis.yml | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 07b668b03..fdf4664db 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ matrix: + fast_finish: true include: - os: linux dist: trusty @@ -41,21 +42,23 @@ matrix: language: generic before_install: - brew update - - brew install python3 fontconfig freetype glew + # We dont install fontconfig as installing it is very slow and we dont need it to run the test suite anyway + - brew install python3 freetype glew glfw install: | + if [[ "$RUN_FLAKE" == "1" ]]; then pip install flake8; fi if [[ $TRAVIS_OS_NAME == 'osx' ]]; then python3 -m venv venv; source venv/bin/activate; + else + wget -O glfw-3.2.1.zip https://github.com/glfw/glfw/archive/3.2.1.zip + unzip glfw-3.2.1.zip + cd glfw-3.2.1 + cmake -DBUILD_SHARED_LIBS=ON -DGLFW_BUILD_EXAMPLES=OFF -DGLFW_BUILD_TESTS=OFF -DGLFW_BUILD_DOCS=OFF -DCMAKE_INSTALL_PREFIX=$HOME/glfw + make + make install + cd .. fi - if [[ "$RUN_FLAKE" == "1" ]]; then pip install flake8; fi - wget -O glfw-3.2.1.zip https://github.com/glfw/glfw/archive/3.2.1.zip - unzip glfw-3.2.1.zip - cd glfw-3.2.1 - cmake -DBUILD_SHARED_LIBS=ON -DGLFW_BUILD_EXAMPLES=OFF -DGLFW_BUILD_TESTS=OFF -DGLFW_BUILD_DOCS=OFF -DCMAKE_INSTALL_PREFIX=$HOME/glfw - make - make install - cd .. pkg-config --cflags glfw3 env: @@ -64,7 +67,11 @@ env: - LD_LIBRARY_PATH=$HOME/glfw/lib - ASAN_OPTIONS=leak_check_at_exit=0 before_script: - - python setup.py build --debug $ASAN_ARG + - if [[ $TRAVIS_OS_NAME == 'osx' ]]; then + python setup.py build; + else + python setup.py build --debug $ASAN_ARG; + fi script: - LD_PRELOAD=$ASANLIB python setup.py test - if [[ "$RUN_FLAKE" == "1" ]]; then flake8 --count .; fi