-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (65 loc) · 2.9 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
dist: trusty
sudo: false
language: python
python:
- "2.7"
cache: pip
notifications:
email: false
git:
depth: 10
services:
- docker
env:
- TEST_ARG="make test-documentation test-experiment-setup test-autogenerated-files"
- TEST_ARG="make test-dymola PACKAGE=\"IBPSA.Experimental\""
- TEST_ARG="make test-jmodelica PACKAGE=\"IBPSA.Experimental\""
- TEST_ARG="make test-dymola PACKAGE=\"IBPSA.Fluid.{Actuators,BaseClasses,Chillers,Delays,Geothermal,Examples,FMI,FixedResistances}\""
- TEST_ARG="make test-jmodelica PACKAGE=\"IBPSA.Fluid.{Actuators,BaseClasses,Chillers,Delays,Geothermal,Examples,FMI,FixedResistances}\""
- TEST_ARG="make test-dymola PACKAGE=\"IBPSA.Fluid.{HeatExchangers,HeatPumps,Interfaces,MassExchangers,MixingVolumes,Movers,Sensors,Sources,Storage}\""
- TEST_ARG="make test-jmodelica PACKAGE=\"IBPSA.Fluid.{HeatExchangers,HeatPumps,Interfaces,MassExchangers,MixingVolumes,Movers,Sensors,Sources,Storage}\""
- TEST_ARG="make test-dymola PACKAGE=\"IBPSA.ThermalZones\""
- TEST_ARG="make test-jmodelica PACKAGE=\"IBPSA.ThermalZones\""
- TEST_ARG="make test-dymola PACKAGE=\"IBPSA.{Airflow,BoundaryConditions,Controls}\""
- TEST_ARG="make test-jmodelica PACKAGE=\"IBPSA.{Airflow,BoundaryConditions,Controls}\""
- TEST_ARG="make test-dymola PACKAGE=\"IBPSA.{Media,Utilities}\""
- TEST_ARG="make test-jmodelica PACKAGE=\"IBPSA.{Media,Utilities}\""
before_install:
- if [[ "$TEST_ARG" == *test-dymola* ]]; then
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD" && docker pull "$DOCKER_USERNAME"/travis_ubuntu-1804_dymola-2019fd01-x86_64;
chmod +x IBPSA/Resources/Scripts/travis/bin/dymola;
cp IBPSA/Resources/Scripts/travis/bin/dymola $HOME/bin/;
fi;
- if [[ "$TEST_ARG" == *test-jmodelica* ]]; then
docker pull "$DOCKER_USERNAME"/ubuntu-1804_jmodelica_trunk;
chmod +x IBPSA/Resources/Scripts/travis/bin/jm_ipython.sh;
cp IBPSA/Resources/Scripts/travis/bin/jm_ipython.sh $HOME/bin/;
fi;
# Install dependencies
# For sphinx, we need to install specific package versions, otherwise
# the html output may have small formatting differences which causes
# the test to fail
install:
- pip install --upgrade pip setuptools wheel
- pip install --only-binary=numpy,scipy,matplotlib numpy==1.13.3 scipy==0.19.1 matplotlib==2.1.0
- pip install sphinx==1.8.2 \
sphinx-bootstrap-theme==0.6.5 \
sphinxcontrib-bibtex==0.4.0 \
sphinxcontrib-plantuml==0.12 \
alabaster==0.7.12 \
MarkupSafe==1.1.0 \
Pygments==2.3.1 \
snowballstemmer==1.2.1 \
docutils==0.14 \
Babel==2.6.0 \
requests==2.20.1 \
Jinja2==2.10 \
latexcodec==1.0.5 \
pybtex==0.21
pybtex-docutils==0.2.1 \
oset==0.1.3 \
PyYAML==3.13
- pip install git+https://github.com/lbl-srg/BuildingsPy@master
# Execute tests
script:
- (cd IBPSA/Resources/Scripts/travis && travis_wait 70 $TEST_ARG)