Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Commit

Permalink
Fix definition of CC
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Jun 19, 2018
1 parent e09598e commit eb74a8c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .travis.yml
Expand Up @@ -42,15 +42,15 @@ matrix:
- PYTHON_VERSION=3.5
- CONDA_DEPENDENCIES="setuptools sphinx cython numpy pytest-cov clang llvm-openmp"
- OPENMP_EXPECTED=True
- CC=clang
- CCOMPILER=clang

# Test gcc on OSX
- os: osx
env:
- PYTHON_VERSION=3.5
- CONDA_DEPENDENCIES="setuptools sphinx cython numpy pytest-cov gcc"
- OPENMP_EXPECTED=True
- CC=gcc
- CCOMPILER=gcc

# Uncomment the following if there are issues in setuptools that we
# can't work around quickly - otherwise leave uncommented so that
Expand All @@ -76,6 +76,15 @@ before_install:
fi
fi

# We need to use CCOMPILER otherwise Travis overwrites CC if we define it
# in env: above.
- if [ ! -z $CCOMPILER ]; then
export CC=$CCOMPILER;
fi

# Check CC variable
- echo $CC

install:

- git clone git://github.com/astropy/ci-helpers.git
Expand Down

0 comments on commit eb74a8c

Please sign in to comment.