forked from gerbera/gerbera
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (36 loc) · 1.07 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
# None as otherwise it clobbers our compiler
language: cpp
# Ubuntu 16.04 Xenial support
sudo: required
dist: xenial
services:
- docker
# Build
script:
- |-
docker run -v $PWD:/tmp/gerbera-src \
-w /tmp/build \
-e CXX \
-e CC \
-e CXXFLAGS \
gerbera/gerbera-ci-base:latest \
bash -c \
"bash ../gerbera-src/scripts/install-googletest.sh \
&& cmake ../gerbera-src -DCMAKE_VERBOSE_MAKEFILE=ON -DWITH_SYSTEMD=0 -DWITH_TESTS=1 -DWITH_FFMPEGTHUMBNAILER=1 -DWITH_EXIF=1 -DWITH_AVCODEC=1 -DWITH_MYSQL=1 \
&& make install && make test"
env:
- CXX=g++-7 CC=gcc-7
- CXX=g++-8 CC=gcc-8
- CXX=clang++-7 CC=clang-7 CXXFLAGS=-stdlib=libc++
jobs:
include:
- stage: Test Gerbera UI
addons:
chrome: stable
before_install: skip
install:
- npm --prefix $TRAVIS_BUILD_DIR/gerbera-web/ install $TRAVIS_BUILD_DIR/gerbera-web/
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