-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
82 lines (73 loc) · 2.5 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
os: Linux
dist: focal
language: python
python:
- "3.8"
cache: pip
env:
global:
- DOCKER_REPONAME=lbnlblum
- OMC_VERSION=ubuntu-2204-omc:1.22.0_dev-41-g8a5b18f-1
- MODELICA_BUILDINGS_VERSION=9.1.0
- MODELICA_JSON_VERSION=ac5580f720b553617cde76996d1d56d4b4e28cc0
- MODELICAPATH=${TRAVIS_BUILD_DIR}/modelica-buildings
- MODELICAJSONPATH=${TRAVIS_BUILD_DIR}/modelica-json
notifications:
email: false
git:
depth: 10
# Install dependencies
# graphviz is required by plantuml
addons:
apt:
packages:
- graphviz
before_install:
- chmod +x software/verification/travis/omc
- docker pull ${DOCKER_REPONAME}/${OMC_VERSION};
cp software/verification/travis/omc $HOME/bin/omc;
- wget --no-verbose https://github.com/lbl-srg/modelica-json/archive/${MODELICA_JSON_VERSION}.tar.gz;
tar xzf ${MODELICA_JSON_VERSION}.tar.gz;
rm ${MODELICA_JSON_VERSION}.tar.gz;
mv modelica-json-${MODELICA_JSON_VERSION} ${MODELICAJSONPATH};
cd ${MODELICAJSONPATH};
make install-node-packages;
make compile;
cd -;
echo "Installed modelica-json in ${MODELICAJSONPATH}";
- wget --no-verbose https://github.com/lbl-srg/modelica-buildings/archive/refs/tags/v${MODELICA_BUILDINGS_VERSION}.tar.gz;
tar xzf modelica-buildings-${MODELICA_BUILDINGS_VERSION}.tar.gz;
rm modelica-buildings-${MODELICA_BUILDINGS_VERSION}.tar.gz;
mv modelica-buildings-${MODELICA_BUILDINGS_VERSION} ${MODELICAPATH};
cd ${MODELICAPATH};
cd -;
echo "Set up modelica-buildings at ${MODELICAPATH}";
# 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:
- pip3 install --upgrade pip wheel
- 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==1.1.1 \
Pygments==2.4.2 \
snowballstemmer==1.9.0 \
docutils==0.17.1 \
Babel==2.7.0 \
requests==2.27.0 \
Jinja2==2.11.3 \
latexcodec==1.0.7 \
pybtex==0.24.0 \
pybtex-docutils==1.0.1 \
oset==0.1.3 \
PyYAML==5.4
- pip3 install -r ${TRAVIS_BUILD_DIR}/software/verification/requirements.txt
# Execute tests
script:
- (cd specification; make clean html; cd ..)
- (cd specification; make latex; cd ..)
- (cd specification; make linkcheck SPHINXOPTS=-W; cd ..)
- (cd software/verification; make test-verification; cd ../..)