set up coveralls
@@ -17,12 +17,17 @@ env:
# Radiance is required to run tests. Download and setup v5.2
before_install:
+ - pwd
- wget https://github.com/NREL/Radiance/releases/download/5.2/radiance-5.2.dd0f8e38a7-Linux.tar.gz -O /tmp/radiance.tar.gz
- tar -xvf /tmp/radiance.tar.gz
- export PATH=$PATH:$PWD/radiance-5.2.dd0f8e38a7-Linux/usr/local/radiance/bin
- export RAYPATH=.:$PWD/radiance-5.2.dd0f8e38a7-Linux/usr/local/radiance/lib
- export MANPATH=$MANPATH:$PWD/radiance-5.2.dd0f8e38a7-Linux/usr/local/radiance/man
- - ls -l /home/travis/build/NREL/bifacial_radiance/
+
+# Copy gencumulativesky into RAYPATH...
+ - ls -l /home/travis/build/NREL/bifacial_radiance/bifacial_radiance/data
+ - cp /home/travis/build/NREL/bifacial_radiance/bifacial_radiance/data/gencumulativesky $PWD/radiance-5.2.dd0f8e38a7-Linux/usr/local/radiance/bin/
+ - ls -l $PWD/radiance-5.2.dd0f8e38a7-Linux/usr/local/radiance/bin
# Example from TravisCI: https://docs.travis-ci.com/user/installing-dependencies
#before_install:
# - wget https://github.com/n1k0/casperjs/archive/1.0.2.tar.gz -O /tmp/casper.tar.gz
@@ -31,10 +36,12 @@ before_install:
install:
- pip install $REQ_ENV
+ - pip install coveralls
script:
- - pytest
-
+ - pytest --cov=bifacial_radiance
+after_success:
+ - coveralls
after_script:
# debug what's going on - try to ls-l the tests folder to see where things are saved
- pwd
