forked from gerbera/gerbera
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (69 loc) · 1.89 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
# None as otherwise it clobbers our compiler choce
language: none
# Ubuntu 14.04 Trusty support
sudo: required
dist: trusty
# The default build
env: CXX=g++-6 CC=gcc-6
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y uuid-dev libexpat1-dev libsqlite3-dev libmysqlclient-dev libmagic-dev libexif-dev libcurl4-openssl-dev cmake
- ./scripts/install-duktape.sh
- ./scripts/install-pupnp18.sh
- ./scripts/install-taglib111.sh
- ./scripts/install-googletest.sh
# Build
script:
- mkdir build
- cd build
- cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DWITH_SYSTEMD=0 -DWITH_TESTS=1 .. && make && make test ARGS=-V
matrix:
include:
- stage: Build Gerbera
- env: CXX=g++-4.9 CC=gcc-4.9
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- env: CXX=g++-5 CC=gcc-5
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- env: CXX=clang++-4.0 CC=clang-4.0
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-4.0
packages:
- libc++-dev
- clang-4.0
- stage: Test Gerbera UI
addons:
chrome: stable
apt:
packages:
- nodejs
- xvfb
before_install: skip
install:
- npm --prefix $TRAVIS_BUILD_DIR/gerbera-web/ install $TRAVIS_BUILD_DIR/gerbera-web/
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3 # give xvfb some time to start
script:
- npm --prefix $TRAVIS_BUILD_DIR/gerbera-web run lint
- npm --prefix $TRAVIS_BUILD_DIR/gerbera-web run test
- npm --prefix $TRAVIS_BUILD_DIR/gerbera-web run test:e2e