forked from kalliope-project/kalliope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (55 loc) · 2.13 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
language: python
python:
- "3.6"
- "3.7"
env:
global:
- INSTALL_TYPE=setup
matrix:
include:
- name: Test in Docker Ubuntu 18.04
env:
- INSTALL_TYPE=docker
services:
- docker
before_install:
- docker build --force-rm=true -t kalliope-ubuntu1804 -f docker/testing_ubuntu_18_04.dockerfile .
script:
- docker run -it --rm -e TRAVIS_BRANCH=${TRAVIS_BRANCH} -e TRAVIS_EVENT_TYPE=${TRAVIS_EVENT_TYPE} -e TRAVIS_PULL_REQUEST_SLUG=${TRAVIS_PULL_REQUEST_SLUG} -e TRAVIS_PULL_REQUEST_BRANCH=${TRAVIS_PULL_REQUEST_BRANCH} kalliope-ubuntu1804
- name: Test in Docker Debian 10
env:
- INSTALL_TYPE=docker
services:
- docker
before_install:
- docker build --force-rm=true -t kalliope-debian10 -f docker/testing_debian10.dockerfile .
script:
- docker run -it --rm -e TRAVIS_BRANCH=${TRAVIS_BRANCH} -e TRAVIS_EVENT_TYPE=${TRAVIS_EVENT_TYPE} -e TRAVIS_PULL_REQUEST_SLUG=${TRAVIS_PULL_REQUEST_SLUG} -e TRAVIS_PULL_REQUEST_BRANCH=${TRAVIS_PULL_REQUEST_BRANCH} kalliope-debian10
before_install:
- |
if [ "${INSTALL_TYPE}" == "setup" ]; then
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse"
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse"
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse"
sudo add-apt-repository -y ppa:deadsnakes/ppa # contains libpython3.6-dev
sudo apt-get update -q
sudo apt-get install $(cat install/files/deb-packages_requirements.txt)
sudo apt-get install gcc-5 python3-dev libpython3.6-dev
fi
install:
- |
if [ "${INSTALL_TYPE}" == "setup" ]; then
pip install -r install/files/python_requirements.txt;
pip install coverage python-coveralls;
fi
script:
- |
if [ "${INSTALL_TYPE}" == "setup" ]; then
coverage run --source=kalliope -m unittest discover;
coverage report -m;
fi
after_success:
- |
if [ "${INSTALL_TYPE}" == "setup" ]; then
coveralls
fi