Skip to content

Commit

Permalink
Unified test script for Travis and Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerkin committed Nov 4, 2017
1 parent 482ade0 commit bad95bd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ install:
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- pip install --process-dependency-links .
- pip install . --process-dependency-links
- pip install coveralls
######################################################
before_script:
- git clone -b cosmosuite http://github.com/scidash/scidash ../scidash
script:
- coverage run --source=. --omit=*unit_test*,setup.py,.eggs setup.py test
- sh test.sh
after_success:
- coveralls
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ USER root
RUN chown -R $NB_USER .
USER $NB_USER

RUN python setup.py install
RUN pip install -e . --process-dependency-links
RUN sh test.sh
3 changes: 3 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pip install coveralls
git clone -b cosmosuite http://github.com/scidash/scidash ../scidash
coverage run --source=. --omit=*unit_test*,setup.py,.eggs setup.py test

0 comments on commit bad95bd

Please sign in to comment.