forked from eerotal/LibreSignage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (57 loc) · 1.57 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
##
## Travis CI config for LibreSignage. Currently only
## the Docker image is built and packaged in Travis
## since automatically configuring the apache2-debian
## target is quite tricky.
##
# Ubuntu Xenial is used mainly to get access to a newer
# version of GNU Make.
dist: xenial
language: php
php:
- '7.2'
services:
- docker
sudo: required
git:
depth: false
branches:
only:
- master
- next
- /v[0-9]+.x.x/
- /v[0-9]+.[0-9]+.[0-9]+/
matrix:
include:
env:
- target="apache2-debian-docker"
features="imgthumbs"
deploy:
- provider: script
script: sh build/scripts/travis/docker_push.sh eerotal nightly
on:
branch: next
condition: $target = 'apache2-debian-docker'
condition: $TRAVIS_EVENT_TYPE = 'cron'
- provider: script
script: sh build/scripts/travis/docker_push.sh eerotal release
on:
tags: true
condition: $target = 'apache2-debian-docker'
install:
# Install pandoc 2.7.2 from a .deb package because the
# version in the repos is too old.
- |
wget -qO pandoc.deb https://github.com/jgm/pandoc/releases/download/2.7.2/pandoc-2.7.2-1-amd64.deb
sudo dpkg -i pandoc.deb
rm pandoc.deb
# Install other dependencies from repos & npm.
- sudo apt-get update
- sudo apt-get install librsvg2-bin
- npm install
before_script:
# Configure the build
- make configure TARGET="$target" PASS="--features $features"
script:
# Build and install
- make -j$(nproc) && make install