forked from pencil2d/pencil
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
93 lines (85 loc) · 2.18 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Travis-CI configuration file for SuperTuxKart modified by CandyFace for Pencil2D
#
# Configuration manual:
# http://docs.travis-ci.com/user/build-configuration/
#
# How to use TravisCI with C++ (Qt Test, C++11):
# https://github.com/richelbilderbeek/travis_qmake_gcc_cpp11_qt_qtests
#
language: cpp
compiler: g++
dist: trusty
osx_image: xcode12
os:
- linux
- osx
env:
global:
- DOXYFILE: $TRAVIS_BUILD_DIR/util/docs/Doxyfile-Travis
- GH_REPO_REF: github.com/pencil2d/pencil-docs.git
- DOXYGEN_OUTPUT_DIR: $TRAVIS_BUILD_DIR/docs
- MAKEFLAGS: -j2
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- ubuntu-sdk-team
- trusty-media
- sourceline: 'ppa:beineri/opt-qt597-trusty'
packages:
- build-essential
- qt59tools
- qt59base
- qt59multimedia
- qt59svg
- qt59xmlpatterns
- bsdtar
- ffmpeg
- gstreamer1.0-plugins-base
- gstreamer1.0-plugins-good
- gstreamer1.0-plugins-bad
- gstreamer1.0-alsa
- gstreamer1.0-pulseaudio
- doxygen
- graphviz
- python3
- python3-pip
homebrew:
packages:
- qt
- python3
- libarchive
- gpg
before_install:
- |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew link qt --force;
export PATH="/usr/local/opt/libarchive/bin:$PATH"
fi
install:
- pip3 freeze > requirements.txt
- pip3 install -r requirements.txt
- sudo pip3 install --upgrade typing
- sudo pip3 install --upgrade oauth2client
- sudo pip3 install --upgrade google-api-python-client 'setuptools<44'
- python3 --version
before_script:
- 'if [ "$TRAVIS_OS_NAME" == "linux" ]; then
. /opt/qt59/bin/qt59-env.sh;
export DISPLAY=:99.0;
sh -e /etc/init.d/xvfb start;
echo "give xvfb some time to start";
sleep 3;
fi'
- qmake --version
script:
- mkdir "build" && cd build
- 'if [ "$TRAVIS_BRANCH" == "release" ]; then
qmake ../ PREFIX=/usr CONFIG+=release CONFIG+=GIT CONFIG+=PENCIL2D_RELEASE;
else
qmake ../ PREFIX=/usr CONFIG+=release CONFIG+=GIT CONFIG+=PENCIL2D_NIGHTLY;
fi'
- make;
- "$TRAVIS_BUILD_DIR/build/tests/bin/tests"
after_success:
- "${TRAVIS_BUILD_DIR}/util/after-build.sh"