forked from projectM-visualizer/projectm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
81 lines (76 loc) · 2.28 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
language: cpp
before_script: ./autogen.sh
before_install:
- eval "${MATRIX_EVAL}"
# TODO: test different combinations of flags, --enable-sdl, --enable-qt, etc
script:
- ./configure $PM_OPTS --prefix=$PWD/local && make -j6 && make install # build from checkout
- make dist && tar -zxf projectM-*.tar.gz && cd projectM-* && ./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:
# linux/clang with SDL
- os: linux
addons:
apt:
sources:
- llvm-toolchain-trusty-5.0
packages:
- clang-5.0
- libsdl2-dev
- libglm-dev
- libc++-dev
env:
- MATRIX_EVAL="CC=clang-5.0 CXX=clang++-5.0 PM_OPTS=\"--enable-sdl\""
# linux/clang with pulseaudio/qt/jack
- os: linux
addons:
apt:
sources:
- llvm-toolchain-trusty-5.0
packages:
- libsdl2-dev
- clang-5.0
- libglm-dev
- libc++-dev
- qt5-default
- qtdeclarative5-dev
- libqt5opengl5-dev
- libjack-dev
- libpulse-dev
- libsdl-dev # for jack
env:
- MATRIX_EVAL="CC=clang-5.0 CXX=clang++-5.0 PM_OPTS=\"--enable-qt --enable-jack --enable-pulseaudio\""
# linux/gcc
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- libsdl2-dev
- libglm-dev
- libc++-dev
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
# osx/xcode/clang
- os: osx
osx_image: xcode8
env:
- MATRIX_EVAL="brew update && brew install sdl2 glm"
notifications:
email:
on_success: never
on_failure: change