TravisCI install Radiance prior to tests
update travis.yml
@@ -4,18 +4,33 @@ language: python
python:
- "2.7"
- - "3.6"
+# - "3.6"
# Test two environments:
# 1) dependencies with pinned versions from requirements.txt
# 2) 'pip install --upgrade --upgrade-strategy=eager .' to install upgraded
# dependencies from PyPi using version ranges defined within setup.py
-#env:
-# - REQ_ENV='-r requirements.txt .'
+env:
+ - REQ_ENV='-r requirements.txt .'
# - REQ_ENV='--upgrade --upgrade-strategy=eager .'
-#install:
-# - pip install $REQ_ENV
+# Radiance is required to run tests. Download and setup v5.2
+
+before_install:
+ - 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
+ - echo $PATH
+ - echo oconv
+ - ls -l /home/travis/
+# 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
+# - tar -xvf /tmp/casper.tar.gz
+# - export PATH=$PATH:$PWD/casperjs-1.0.2/bin/
+
+install:
+ - pip install $REQ_ENV
script:
- pytest
