forked from missionpinball/mpf-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (22 loc) · 1.41 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
# Travis is only used to test the Sphinx build and is configured to fail on
# bad links and references. The actual docs are published on RTD which has its
# own webhook and is not related to anything that travis does.
dist: trusty
sudo: required
matrix:
fast_finish: true
include:
- os: linux
env: LINUX=ubuntu:20.04
sudo: required
services:
- docker
before_install:
- if [ ! -z "${DOCKER_PASSWORD}" ]; then
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USER" --password-stdin;
fi;
- git clone --recursive --branch dev https://github.com/missionpinball/mpf.git _mpf;
- git clone --recursive --branch dev https://github.com/missionpinball/mpf-mc.git _mpf-mc
- git clone --branch dev https://github.com/missionpinball/mpf-debian-installer.git _mpf_installer;
script:
- docker run -v $PWD:$PWD -w $PWD $LINUX /bin/sh -c "export DEBIAN_FRONTEND=noninteractive; _mpf_installer/install-mpf-dependencies && _mpf_installer/install-mc-dependencies && apt-get install -y git xvfb && pip3 install -q -r requirements.txt && pip3 install _mpf/ && pip3 install _mpf-mc/ && export DISPLAY=:99.0 && /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1280x720x24 -ac +extension GLX && sphinx-build -nW -b html -d _build/doctrees . _build/html && sphinx-build -nW -b dummy -d _build/doctrees . _build/dummy -D use_mc=1";