forked from libretime/libretime
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
86 lines (81 loc) · 1.85 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
dist: xenial
services:
- postgresql
env:
global:
- ENVIRONMENT=testing
- LIBRETIME_LOG_DIR=/tmp/log/libretime
addons:
apt:
packages:
- gstreamer1.0-plugins-base
- gstreamer1.0-plugins-good
- gstreamer1.0-plugins-bad
- gstreamer1.0-plugins-ugly
- libgirepository1.0-dev
- liquidsoap
- liquidsoap-plugin-faad
- liquidsoap-plugin-lame
- liquidsoap-plugin-mad
- liquidsoap-plugin-vorbis
- python3-gst-1.0
- silan
jobs:
include:
- language: php
php: 7.3
stage: test
- language: php
php: 7.2
stage: test
- language: php
php: 7.1
stage: test
- language: php
php: 7.0
stage: test
- language: php
php: 5.6
stage: test
- language: python
python: 3.8
stage: test
- language: python
python: 3.7
stage: test
- language: python
python: 3.5
stage: test
- stage: deploy
addons:
apt:
packages:
dos2unix
script:
./travis/release.sh
deploy:
- provider: releases
token: $GITHUB_TOKEN
file: build/libretime-*.tar.gz
edge: true
on:
tags: true
allow_failures:
# https://github.com/LibreTime/libretime/issues/779
- language: php
php: 7.3
- language: php
php: 7.2
- language: php
php: 7.1
# https://github.com/LibreTime/libretime/issues/1041
- language: python
python: 3.5
install: ./travis/install.sh
before_script:
- psql -c 'CREATE DATABASE libretime;' -U postgres
- psql -c "CREATE USER libretime WITH PASSWORD 'libretime';" -U postgres
- psql -c 'GRANT CONNECT ON DATABASE libretime TO libretime;' -U postgres
- psql -c 'ALTER USER libretime CREATEDB;' -U postgres
- mkdir -p /tmp/log/libretime
script: ./travis/test.sh