forked from lbl-srg/BuildingsPy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
54 lines (42 loc) · 1.29 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
group: deprecated-2017Q2
dist: trusty
language: python
python:
- "2.7"
- "3.6"
cache: pip
env:
- MPLBACKEND=agg
notifications:
email: false
git:
depth: 3
services:
- docker
addons:
apt:
sources:
- sourceline: "deb http://build.openmodelica.org/apt `lsb_release -cs` stable"
key_url: "http://build.openmodelica.org/apt/openmodelica.asc"
packages:
- omc
- omlib-modelica-3.2.?
- tidy
before_install:
- chmod +x buildingspy/tests/MyModelicaLibrary/Resources/Scripts/travis/bin/dymola
- sudo cp buildingspy/tests/MyModelicaLibrary/Resources/Scripts/travis/bin/dymola /usr/local/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_USERNAME"/travis_ubuntu-1804_dymola-2020x-x86_64
- docker pull "$DOCKER_USERNAME"/ubuntu-1804_jmodelica_trunk
- python -m pip install --upgrade pip
install:
- pip install -r requirements.txt
- pip install .
# Execute tests
script:
- omc --version
- make pep8 PEP8_CORRECT_CODE=true
- if [[ $TRAVIS_PYTHON_VERSION != 2.7 ]]; then make doctest; fi
- make unittest