Skip to content

Commit

Permalink
TravisCI: try: add job for testing with gcc on osx.
Browse files Browse the repository at this point in the history
  • Loading branch information
diaena committed Jul 27, 2017
1 parent 772b144 commit 1dd2227
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
language: c

# Default job
# Default linux jobs
os: linux
sudo: required
dist: trusty
# Should spawn a linux-gcc job and a linux-clang job
compiler:
compiler:
- gcc
- clang

# Aditional testing on OSX with default compiler: should spawn one job
# Include osx jobs
matrix:
include:
- os: osx
env: COMPILER=clang
osx_image: xcode8
env:
- MATRIX_EVAL="brew install gcc && CC=gcc-6" # install and use gcc-6
- os: osx
env:
- CC=clang # use default apple clang

before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo add-apt-repository -y ppa:adrozdoff/cmake; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y cmake libmpfr-dev ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then eval "${MATRIX_EVAL}" ; fi

before_script:
- mkdir sleef.build
Expand Down

0 comments on commit 1dd2227

Please sign in to comment.