Skip to content

Commit

Permalink
Travis-CI: add build that uses Clang as CC compiler
Browse files Browse the repository at this point in the history
This is in order to test against compilers other than GCC.

This fixes <#13>.
  • Loading branch information
zmughal committed Mar 18, 2015
1 parent aa7c613 commit 8690d82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Expand Up @@ -27,12 +27,15 @@ matrix:
env: PDL_WITH_BADVAL=1 PDL_BADVAL_USENAN=1 PDL_BADVAL_PER_PDL=1
- perl: "5.20"
env: DISABLE_FORTRAN=1 # what if we don't have Fortran installed?
- perl: "5.20"
env: CC="clang" # use `clang` instead of `gcc` default
allow_failures:
- perl: blead
before_install:
- sudo apt-get update
- sudo apt-get install build-essential libx11-dev pgplot5 libplplot-dev libgd2-xpm-dev libhdf4-alt-dev libproj-dev libvpx-dev libxpm-dev proj-bin libcfitsio3-dev libreadline-dev
- if [ "$DISABLE_FORTRAN" != 1 ]; then sudo apt-get install gfortran; fi # set DISABLE_FOTRAN = 1 to not install gfortran
- if [ "$CC" == "clang" ]; then export PERL_MM_OPT='"CC=clang"'; fi # clang is already installed in Travis-CI environment. Just add to EU::MM option CC
- sudo apt-get install libxi-dev libxmu-dev freeglut3-dev libgsl0-dev libnetpbm10-dev # for OpenGL
- export PGPLOT_DEV=/NULL
- perl -pi -e 's|WITH_BADVAL => 1|WITH_BADVAL => 0| if defined $ENV{PDL_WITH_BADVAL} && $ENV{PDL_WITH_BADVAL} == 0' perldl.conf # disable bad value support
Expand Down

0 comments on commit 8690d82

Please sign in to comment.