forked from projectM-visualizer/projectm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
78 lines (71 loc) · 2.11 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
language: cpp
compiler:
- clang
- gcc
before_script:
- ./autogen.sh
before_install:
- eval "${MATRIX_EVAL}"
- if [ $TRAVIS_OS_NAME == "osx" ]; then sudo sntp -sS time.apple.com; fi
addons:
apt:
packages:
- libc++-dev
- libsdl2-dev
- libgl1-mesa-dev
script:
- ./configure $PM_OPTS --prefix=$PWD/local && make -j6 && make install # build from checkout
- export PMVER=$(./configure --version | cut -d ' ' -f 3 | grep -m 1 .) # get pM version
- make dist && tar -zxf projectM-${PMVER}.tar.gz && cd projectM-${PMVER} && ./configure $PM_OPTS --prefix=$PWD/dist_install && make -j6 && make install # build from dist
- echo "PWD=$PWD"
- ls .
- test -e src/projectM-sdl/projectMSDL
- test -e src/libprojectM/libprojectM.la
- test -e dist_install/share/projectM/fonts/Vera.ttf
- test -d dist_install/share/projectM/presets
- test -e dist_install/lib/libprojectM.la
- test -e dist_install/include/libprojectM/projectM.hpp
- test -e dist_install/include/libprojectM/Common.hpp
- test -e dist_install/include/libprojectM/PCM.hpp
- dist_install/bin/projectM-unittest
# test on GCC and Clang
matrix:
include:
# qt/pulseaudio/jack/sdl
- os: linux
dist: bionic
addons:
apt:
packages:
- qt5-default
- qtdeclarative5-dev
- libqt5opengl5-dev
- libjack-dev
- libpulse-dev
- libc++-dev
- libsdl2-dev
env:
- MATRIX_EVAL="PM_OPTS=\"--enable-qt --enable-jack --enable-pulseaudio --enable-sdl\""
- os: linux
dist: xenial
addons:
apt:
packages:
- qt5-default
- qtdeclarative5-dev
- libqt5opengl5-dev
- libjack-dev
- libpulse-dev
- libc++-dev
- libsdl2-dev
env:
- MATRIX_EVAL="PM_OPTS=\"--enable-qt --enable-jack --enable-pulseaudio --enable-sdl\""
# osx/xcode/clang
- os: osx
osx_image: xcode12.2
env:
- MATRIX_EVAL="brew update && brew install sdl2"
notifications:
email:
on_success: never
on_failure: change