From aa78a298958ab2013a48ba02cf268a58c6c8ea21 Mon Sep 17 00:00:00 2001 From: Jim Chiang Date: Sun, 4 Feb 2018 15:43:57 -0800 Subject: [PATCH] use lsstdesc/stack-sims docker image; set imSim directory so that coveralls can find coverage info --- .travis.yml | 4 ++-- travis_test.sh | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9bdcbb98..3f136a91 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/travis_test.sh b/travis_test.sh index b7a15eb2..4d218091 100755 --- a/travis_test.sh +++ b/travis_test.sh @@ -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