-
Notifications
You must be signed in to change notification settings - Fork 46
/
.travis.yml
92 lines (80 loc) · 2.49 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
os: Linux
dist: focal
language: python
python:
- "3.8"
cache: pip
env:
global:
- DOCKER_REPONAME=lbnlblum
- OMC_VERSION=ubuntu-2204-omc:1.24.0-1
- OPTIMICA_VERSION=travis-ubuntu-2204-optimica:1.51.6
- DYMOLA_VERSION=travis_ubuntu-2004_dymola:2024xRefresh1-x86_64
- MPLBACKEND=agg
notifications:
email: false
services:
- docker
- xvfb
addons:
apt:
packages:
- tidy
before_install:
- chmod +x buildingspy/tests/MyModelicaLibrary/Resources/Scripts/travis/bin/omc
- sudo cp buildingspy/tests/MyModelicaLibrary/Resources/Scripts/travis/bin/omc /usr/local/bin/
- chmod +x buildingspy/tests/MyModelicaLibrary/Resources/Scripts/travis/bin/dymola
- cp buildingspy/tests/MyModelicaLibrary/Resources/Scripts/travis/bin/dymola $HOME/bin/
- chmod +x buildingspy/tests/MyModelicaLibrary/Resources/Scripts/travis/bin/jm_ipython.sh
- sudo cp buildingspy/tests/MyModelicaLibrary/Resources/Scripts/travis/bin/jm_ipython.sh /usr/local/bin/
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker pull "$DOCKER_REPONAME"/${OMC_VERSION}
- docker pull "$DOCKER_REPONAME"/${DYMOLA_VERSION}
- docker pull "$DOCKER_REPONAME"/${OPTIMICA_VERSION}
- python -m pip install --upgrade pip
install:
- pip install -r requirements.txt
- pip install .
- pip3 install sphinx==4.3.2 \
sphinx-bootstrap-theme==0.8.0 \
sphinxcontrib-bibtex==2.4.1 \
sphinxcontrib-plantuml==0.22 \
alabaster==0.7.12 \
MarkupSafe==2.1.5 \
Pygments==2.4.2 \
snowballstemmer==1.9.0 \
docutils==0.17.1 \
Babel==2.7.0 \
requests==2.27.0 \
Jinja2==3.1.4 \
latexcodec==1.0.7 \
pybtex==0.24.0
pybtex-docutils==1.0.1 \
oset==0.1.3 \
PyYAML==5.4
# Execute tests
script:
- omc --version
- make pep8 PEP8_CORRECT_CODE=true
- make doctest
- make unittest_development_error_dictionary
- make unittest_development_merger
- make unittest_development_refactor
- make unittest_development_regressiontest_openmodelica
- make unittest_development_regressiontest_optimica
- make unittest_development_regressiontest
- make unittest_development_Validator
- make unittest_examples_dymola
- make unittest_io_outputfile
- make unittest_io_postprocess
- make unittest_simulate_Dymola
- make unittest_simulate_Optimica
- make unittest_simulate_Simulator
- make doc
after_failure:
- |
for ff in `find . -name '*.log'`; do
echo "*** Content of $ff"
cat $ff
echo "*** End of $ff"
done