forked from open-ideas/IDEAS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (42 loc) · 1.96 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
group: deprecated-2017Q2
language: python
python:
- "2.7"
cache: pip
notifications:
email: false
git:
depth: 10
services:
- docker
# test-experiment-setup test-autogenerated-files
env:
- TEST_ARG="make test-dymola PACKAGE=\"IDEAS.Buildings.Components\""
- TEST_ARG="make test-dymola PACKAGE=\"IDEAS.Buildings.{Examples,Validation}\""
- TEST_ARG="make test-documentation"
- TEST_ARG="make test-dymola PACKAGE=\"IDEAS.Fluid.{Actuators,BaseClasses,Chillers,Delays,Examples,FixedResistances,Geothermal}\""
- TEST_ARG="make test-dymola PACKAGE=\"IDEAS.Fluid.{HeatExchangers,HeatPumps,Interfaces,MassExchangers,MixingVolumes,Movers,Sensors,Sources,Storage,Taps}\""
- TEST_ARG="make test-dymola PACKAGE=\"IDEAS.{ThermalZones,LIDEAS}\""
- TEST_ARG="make test-dymola PACKAGE=\"IDEAS.{Airflow,BoundaryConditions,Controls}\""
- TEST_ARG="make test-dymola PACKAGE=\"IDEAS.{Media,Utilities,Templates}\""
- TEST_ARG="make test-dymola PACKAGE=\"IDEAS.Examples.{PPD12,IBPSA}\""
- TEST_ARG="make test-dymola PACKAGE=\"IDEAS.Examples.Tutorial\""
- TEST_ARG="make test-dymola PACKAGE=\"IDEAS.Examples.TwinHouses\""
before_install:
- sudo cp IDEAS/Resources/Scripts/travis/usr/local/bin/dymola /usr/local/bin/
- sudo chmod +x /usr/local/bin/dymola
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
- if [[ "$TEST_ARG" == *test-dymola* ]]; then docker pull "$DOCKER_USERNAME"/private:unittests; 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 scipy matplotlib
- pip install git+https://github.com/lbl-srg/BuildingsPy@master
# Execute tests
script:
- (cd IDEAS/Resources/Scripts/travis && travis_wait 70 $TEST_ARG)
after_script:
- cat IDEAS/failed-simulator-dymola.log