forked from GNOME/grilo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (47 loc) · 1.33 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
sudo: false
compiler: gcc
language: c
os: linux
services:
- docker
env:
- BUILD=autotools
- BUILD=meson
before_install:
- docker pull grilofw/grilo:base
- echo FROM grilofw/grilo:base > Dockerfile
- echo ADD . /root/grilo >> Dockerfile
- echo WORKDIR /root/grilo >> Dockerfile
script:
- if [[ "$BUILD" == "autotools" ]]; then
echo RUN ./autogen.sh \
--prefix /usr \
--enable-gtk-doc
--enable-introspection \
--enable-vala \
--enable-test-ui \
--enable-grl-net \
--enable-grl-pls >> Dockerfile;
echo RUN make >> Dockerfile;
echo RUN make install >> Dockerfile;
docker build -t grilofw/grilo:core .;
fi
- if [[ "$BUILD" == "meson" ]]; then
echo RUN meson \
--prefix /usr \
-Denable-grl-net=true \
-Denable-grl-pls=true \
-Denable-gtk-doc=true \
-Denable-introspection=true \
-Denable-test-ui=true \
-Denable-vala=true \
. build >> Dockerfile;
echo RUN ninja -C build >> Dockerfile;
echo RUN ninja -C build install >> Dockerfile;
docker build .;
fi
after_success:
- if [[ "$BUILD" == "autotools" && "$TRAVIS_BRANCH" == "master" && -n "$DOCKER_USERNAME" ]]; then
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
docker push grilofw/grilo:core;
fi