forked from GNOME/grilo-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
88 lines (83 loc) · 2.64 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
sudo: false
compiler: gcc
language: c
os: linux
services:
- docker
env:
- BUILD=autotools
- BUILD=meson
before_install:
- docker pull grilofw/grilo:core
- echo FROM grilofw/grilo:core > Dockerfile
- echo ADD . /root/grilo-plugins >> Dockerfile
- echo WORKDIR /root/grilo-plugins >> Dockerfile
script:
- if [[ "$BUILD" == "autotools" ]]; then
echo RUN ./autogen.sh \
--prefix /usr \
--enable-gcov \
--enable-bookmarks \
--enable-chromaprint \
--enable-dleyna \
--enable-dmap \
--enable-filesystem \
--enable-flickr \
--enable-freebox \
--enable-gravatar \
--enable-jamendo \
--enable-local-metadata \
--enable-lua-factory \
--enable-magnatune \
--enable-metadata-store \
--enable-optical-media \
--enable-pocket \
--enable-podcasts \
--enable-thetvdb \
--enable-tmdb \
--enable-tracker \
--enable-vimeo \
--enable-youtube >> Dockerfile;
echo RUN make >> Dockerfile;
echo RUN make check >> Dockerfile;
echo RUN make install >> Dockerfile;
docker build -t grilofw/grilo:latest .;
fi
- if [[ "$BUILD" == "meson" ]]; then
echo RUN meson \
--prefix /usr \
-Denable-bookmarks=yes \
-Denable-chromaprint=yes \
-Denable-dleyna=yes \
-Denable-dmap=yes \
-Denable-filesystem=yes \
-Denable-flickr=yes \
-Denable-freebox=yes \
-Denable-gravatar=yes \
-Denable-jamendo=yes \
-Denable-local-metadata=yes \
-Denable-lua-factory=yes \
-Denable-magnatune=yes \
-Denable-metadata-store=yes \
-Denable-optical-media=yes \
-Denable-pocket=yes \
-Denable-podcasts=yes \
-Denable-thetvdb=yes \
-Denable-tmdb=yes \
-Denable-tracker=yes \
-Denable-vimeo=yes \
-Denable-youtube=yes \
. build >> Dockerfile;
echo RUN ninja -C build >> Dockerfile;
echo RUN ninja -C build test >> Dockerfile;
echo RUN ninja -C build install >> Dockerfile;
docker build .;
fi
after_success:
- if [[ "$BUILD" == "autotools" && "$TRAVIS_BRANCH" == "master" ]]; then
docker run -e COVERALLS_REPO_TOKEN=$COVERALLS_REPO_TOKEN grilofw/grilo:latest /bin/sh -c "cd /root/grilo-plugins && coveralls --exclude tests --exclude help --exclude src/lua-factory/lua-library";
fi
- if [[ "$BUILD" == "autotools" && "$TRAVIS_BRANCH" == "master" && -n "$DOCKER_USERNAME" ]]; then
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
docker push grilofw/grilo:latest;
fi