Skip to content

Commit

Permalink
Merge 009f256 into 568dc8c
Browse files Browse the repository at this point in the history
  • Loading branch information
wkerzendorf committed Jul 26, 2018
2 parents 568dc8c + 009f256 commit e7472ed
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
31 changes: 16 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,21 @@ matrix:
- TEST_MODE='spectrum'

#trouble with osx building due to segfault at cython (https://github.com/cython/cython/issues/2199)
- os: osx
language: generic
env:
- COMPILER=clang
- SETUP_CMD='test --args="--tardis-refdata=$HOME/tardis-refdata/"'
- TEST_MODE='spectrum'
- MINICONDA_URL='http://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh'

# and https://github.com/cython/cython/issues/2505
# - os: osx
# language: generic
# env:
# - COMPILER=clang
# - SETUP_CMD='test --args="--tardis-refdata=$HOME/tardis-refdata/"'
# - TEST_MODE='spectrum'
# - MINICONDA_URL='http://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh'
# The OSX version does work if one builds cython on its own with a special CFLAGS

# - git clone https://github.com/cython/cython
# - cd cython
# - git checkout c485b1b77264c3c75d090a3c526de24966830d42
# - CFLAGS="$CFLAGS -D CYTHON_CLINE_IN_TRACEBACK=0" python setup.py install
# - cd ..

- python: 2.7
env: SETUP_CMD='test'
Expand Down Expand Up @@ -87,15 +94,9 @@ install:
- cd $TRAVIS_BUILD_DIR
- conda env create -f tardis_env27.yml
- source activate tardis
#trouble with building due to segfault at cython (https://github.com/cython/cython/issues/2199)
#remove if we can get normal cython through conda
- git clone https://github.com/cython/cython
- cd cython
- git checkout c485b1b77264c3c75d090a3c526de24966830d42
- CFLAGS="$CFLAGS -D CYTHON_CLINE_IN_TRACEBACK=0" python setup.py install
- cd ..

script:
- python -c "import Cython; print Cython.__version__"
- echo CC=$COMPILER python setup.py $SETUP_CMD
- CC=$COMPILER python setup.py $SETUP_CMD

Expand Down
2 changes: 1 addition & 1 deletion tardis_env27.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies:
- matplotlib=2.0
- astropy=1.3
- numexpr=2.6
#- Cython=0.28
- Cython=0.28.4
- networkx=1.10
- pytest=3.0
- pyyaml=3.12
Expand Down

0 comments on commit e7472ed

Please sign in to comment.