Skip to content

Commit

Permalink
use lsstdesc/stack-sims docker image; set imSim directory so that cov…
Browse files Browse the repository at this point in the history
…eralls can find coverage info
  • Loading branch information
jchiang87 committed Feb 4, 2018
1 parent ba5a5a4 commit aa78a29
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ install:
- echo 'DOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock -s devicemapper"' | sudo tee /etc/default/docker > /dev/null
- sudo service docker restart
- sleep 5
- sudo docker pull heather999/test:version4.0test
- sudo docker pull lsstdesc/stack-sims:w_2018_03-sims_2_5_0
- pip install coveralls

script:
- sudo chown -R 1000:1000 .
- docker run -v `pwd`:/home/imSim heather999/test:version4.0test /home/imSim/travis_test.sh
- docker run -v `pwd`:/home/travis/imSim lsstdesc/stack-sims:w_2018_03-sims_2_5_0 /home/travis/imSim/travis_test.sh

after_success:
- coveralls
7 changes: 4 additions & 3 deletions travis_test.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/bin/bash
source /opt/lsst/software/stack/loadLSST.bash
source scl_source enable devtoolset-6
source loadLSST.bash
setup lsst_sims
pip install nose
pip install coveralls
pip install pylint
eups declare imsim -r /home/imSim -t current
eups declare imsim -r /home/travis/imSim -t current
setup imsim
cd /home/imSim
cd /home/travis/imSim
scons
nosetests -s --with-coverage --cover-package=desc.imsim

0 comments on commit aa78a29

Please sign in to comment.