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

Commit

Permalink
Update travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
vxgmichel committed Mar 16, 2017
1 parent b149569 commit a4a24f0
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .travis.yml
Expand Up @@ -16,7 +16,7 @@ cache:
- ./miniconda # Conda environment
- ./.eggs # pytest eggs
- ./build # Build environment
- ./old_ext # Previous extension
- ./cached_ext # Previous extension

before_install:
# Add conda to path
Expand Down Expand Up @@ -45,16 +45,14 @@ install:

before_script:
# Make sure old_ext exists
- mkdir -p old_ext
# Touch all the objects file if the extension hasn't changed
- diff old_ext ext && find build -name _tango*.so -printf "touching %p\n" -exec touch {} + || true
- mkdir -p cached_ext
# Touch the .so files if the extension hasn't changed
- diff cached_ext ext && find build -name _tango*.so -printf "touching %p\n" -exec touch {} + || true

script:
# Build the package
- python setup.py build
# The build directory has been updated, cached_ext needs to be synchronized too
- rsync -a --delete ext/ cached_ext/
# Run the tests
- python setup.py test

before_cache:
# Copy current ext directory
- rsync -a --delete ext/ old_ext/

0 comments on commit a4a24f0

Please sign in to comment.