travis: minor opimizations (#11327)

* travis: use homebrew addon

* travis: parallelize csources building
This commit is contained in:
alaviss 2019-05-25 06:00:39 +00:00 • committed by Andreas Rumpf
commit 6a94599d66

View file

@ -28,11 +28,11 @@ addons:
- libsdl1.2-dev - libsdl1.2-dev
- libgc-dev - libgc-dev
- libsfml-dev - libsfml-dev
homebrew:
before_install: packages:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi - boehmgc
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install boehmgc; fi - make
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install sfml; fi - sfml
before_script: before_script:
- set -e - set -e
@ -40,7 +40,7 @@ before_script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then shell_session_update() { :; }; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then shell_session_update() { :; }; fi
- git clone --depth 1 https://github.com/nim-lang/csources.git - git clone --depth 1 https://github.com/nim-lang/csources.git
- cd csources - cd csources
- sh build.sh - make -j 2 LD=$CC
- cd .. - cd ..
- export PATH=$(pwd)/bin${PATH:+:$PATH} - export PATH=$(pwd)/bin${PATH:+:$PATH}
- echo PATH:${PATH} - echo PATH:${PATH}