forked from krayon/pinball-mpf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (66 loc) · 2.65 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
dist: xenial
matrix:
fast_finish: true
include:
- os: linux
env:
- LINUX=ubuntu:18.04
sudo: required
language: python
python: "3.6"
- os: linux # this is python 3.8
env:
- LINUX=ubuntu:20.04
sudo: required
language: python
python: "3.6"
- os: linux # stable
env:
- LINUX=debian:bullseye
sudo: required
language: python
python: "3.6"
- os: linux # testing; this is actually python 3.7
env:
- LINUX=debian:buster
sudo: required
language: python
python: "3.6"
- os: osx
language: generic
osx_image: xcode8.3 # OS 10.12
- os: osx
language: generic
osx_image: xcode8 # OS 10.11
- os: osx
language: generic
osx_image: xcode6.4 # OS 10.10
services:
- docker
before_install:
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USER" --password-stdin;
docker system info;
fi;
- git clone --recursive --branch ${TRAVIS_BRANCH} https://github.com/missionpinball/mpf-mc.git _mpf-mc || git clone --recursive --branch `python3 get_version.py` https://github.com/missionpinball/mpf-mc.git _mpf-mc || git clone --recursive --branch dev https://github.com/missionpinball/mpf-mc.git _mpf-mc;
- git clone --branch ${TRAVIS_BRANCH} https://github.com/missionpinball/mpf-debian-installer.git _mpf_installer || git clone --recursive --branch `python3 get_version.py` https://github.com/missionpinball/mpf-debian-installer.git _mpf_installer || git clone --recursive --branch dev https://github.com/missionpinball/mpf-debian-installer.git _mpf_installer;
install:
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
curl -sS https://www.python.org/ftp/python/3.9.1/python-3.9.1-macosx10.9.pkg > python-3.9.1-macosx10.9.pkg;
sudo installer -pkg python-3.9.1-macosx10.9.pkg -target /;
curl -sS https://bootstrap.pypa.io/get-pip.py > get-pip.py;
sudo python3 get-pip.py;
pip3 install .;
fi;
script:
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
docker run -v $PWD:$PWD -w $PWD $LINUX /bin/sh -c "export DEBIAN_FRONTEND=noninteractive; _mpf_installer/install-mpf-dependencies && pip3 install --upgrade coveralls prospector==1.3.1 && pip3 install .[all] && export PYTHONPATH=$PYTHONPATH:$(pwd):$(pwd)/_mpf-mc && prospector && coverage3 run --concurrency=thread -m unittest discover -s mpf/tests && python3 test_regression.py;";
fi;
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
export PYTHONPATH=$PYTHONPATH:$(pwd)/_mpf-mc;
python3 -m unittest discover mpf/tests;
fi;
after_success:
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
coveralls;
fi;