forked from ibpsa/modelica-ibpsa
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
72 lines (60 loc) · 2.73 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
os: Linux
dist: focal
language: python
python:
- "3.8"
cache: pip
notifications:
email: false
git:
depth: 10
services:
- docker
- xvfb
env:
global:
- DOCKER_REPONAME=lbnlblum
- OMC_VERSION=ubuntu-2204-omc:1.24.0-1
- DYMOLA_VERSION=travis_ubuntu-2004_dymola:2024xRefresh1-x86_64
jobs:
# Test matrix for regression tests.
# The documentation is tested using github actions.
- TEST_ARG="make test-bestest"
- TEST_ARG="make test-dymola PACKAGE=\"IBPSA.{Examples,Experimental}\""
- TEST_ARG="make test-openmodelica PACKAGE=\"IBPSA.{Examples,Experimental}\""
- TEST_ARG="make test-dymola PACKAGE=\"IBPSA.Fluid.{Actuators,BaseClasses,Chillers,Delays,Geothermal,Examples,FMI,FixedResistances}\""
- TEST_ARG="make test-openmodelica PACKAGE=\"IBPSA.Fluid.{Actuators,BaseClasses,Chillers,Delays,Geothermal,Examples,FMI,FixedResistances}\""
- TEST_ARG="make test-dymola PACKAGE=\"IBPSA.Fluid.{HeatExchangers,HeatPumps,Humidifiers,Interfaces,MassExchangers,MixingVolumes,Movers,Sensors,Sources,Storage}\""
- TEST_ARG="make test-openmodelica PACKAGE=\"IBPSA.Fluid.{HeatExchangers,HeatPumps,Humidifiers,Interfaces,MassExchangers,MixingVolumes,Movers,Sensors,Sources,Storage}\""
- TEST_ARG="make test-dymola PACKAGE=\"IBPSA.ThermalZones\""
- TEST_ARG="make test-openmodelica PACKAGE=\"IBPSA.ThermalZones\""
- TEST_ARG="make test-dymola PACKAGE=\"IBPSA.{Airflow,BoundaryConditions,Controls,Electrical}\""
- TEST_ARG="make test-openmodelica PACKAGE=\"IBPSA.{Airflow,BoundaryConditions,Controls,Electrical}\""
- TEST_ARG="make test-dymola PACKAGE=\"IBPSA.{Media,Utilities}\""
- TEST_ARG="make test-openmodelica PACKAGE=\"IBPSA.{Media,Utilities}\""
before_install:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- if [[ "$TEST_ARG" == *test-dymola* || "$TEST_ARG" == *test-bestest* ]]; then
docker pull "$DOCKER_REPONAME"/${DYMOLA_VERSION};
cp IBPSA/Resources/Scripts/travis/dymola/dymola $HOME/bin/;
fi;
- if [[ "$TEST_ARG" == *test-openmodelica* ]]; then
docker pull "$DOCKER_REPONAME"/${OMC_VERSION};
cp IBPSA/Resources/Scripts/travis/omc/omc $HOME/bin/omc;
fi;
# Install dependencies
install:
- pip3 install --upgrade pip wheel
- pip3 install --only-binary=numpy,scipy,matplotlib numpy==1.21.4 scipy==1.7.3 matplotlib==3.5.1
- pip3 install git+https://github.com/lbl-srg/${BUILDINGSPY_VERSION}
# Execute tests
script:
- (cd IBPSA/Resources/Scripts/travis && travis_wait 70 $TEST_ARG)
after_failure:
- |
for ff in `find IBPSA -maxdepth 1 -name '*.log'`; do
echo "*** Content of $ff"
cat $ff
echo "*** End of $ff"
done