forked from missionpinball/mpf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
75 lines (66 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
dist: trusty
sudo: required
matrix:
fast_finish: true
include:
- os: linux
env: LINUX=ubuntu:14.04
sudo: required
language: python
python: "3.4"
- os: linux
env: LINUX=ubuntu:16.04
sudo: required
language: python
python: "3.5"
- os: linux
env: LINUX=ubuntu:17.04
sudo: required
language: python
python: "3.5"
- os: linux
env: LINUX=debian:jessie
sudo: required
language: python
python: "3.5"
- os: linux
env: LINUX=debian:experimental
sudo: required
language: python
python: "3.6"
- os: osx
language: generic
osx_image: xcode8.2 # 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:
- 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.5.2/python-3.5.2-macosx10.6.pkg > python-3.5.2-macosx10.6.pkg;
sudo installer -pkg python-3.5.2-macosx10.6.pkg -target /;
pip3 install .;
fi;
- pip3 install packaging coveralls coverage setuptools --upgrade
script:
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
docker run -v $PWD:$PWD -w $PWD $LINUX /bin/sh -c "_mpf_installer/install-mpf-dependencies && pip3 install --upgrade coveralls && pip3 install prospector[with_pyroma] && pip3 install . && export PYTHONPATH=$PYTHONPATH:$(pwd):$(pwd)/_mpf-mc && prospector && coverage3 run --concurrency=thread -m unittest discover -s mpf/tests;";
fi;
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
python3 -m unittest discover mpf/tests;
fi;
before_script:
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
export PYTHONPATH=$PYTHONPATH:$(pwd)/_mpf-mc;
fi;
after_success:
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
coveralls;
fi;