2017-02-28 14:07:34 +01:00
|
|
|
dist: trusty
|
2017-02-20 21:47:53 +01:00
|
|
|
language: php
|
|
|
|
php:
|
2017-02-28 14:07:34 +01:00
|
|
|
# the latest and greatest, has some issues that are excluded below in matrix.allow_failures
|
|
|
|
- 7.1
|
|
|
|
# the 7.0 build demonstrates that everything is basically ok for 7.0, users might want to wait for 7.1 to run it
|
|
|
|
- 7.0
|
|
|
|
# folks who prefer running on 5.x should be using 5.6 in most cases, 5.4 is no in the matrix since noone should use it
|
|
|
|
- 5.6
|
|
|
|
# this is in for centos support, it's still the default on CentOS 7.3 and there were some lang changes after 5.4
|
|
|
|
- 5.4
|
2017-02-20 21:47:53 +01:00
|
|
|
services:
|
|
|
|
- postgresql
|
|
|
|
- rabbitmq
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- ENVIRONMENT=testing
|
|
|
|
- LIBRETIME_LOG_DIR=/tmp/log/libretime
|
2017-02-28 14:07:34 +01:00
|
|
|
matrix:
|
|
|
|
- PYTHON=false
|
|
|
|
- PYTHON=true
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
# there are currently some testing issues with DateTime precision on 7.1
|
|
|
|
- env: PYTHON=false
|
|
|
|
php: 7.1
|
|
|
|
exclude:
|
|
|
|
# by excluding all of python we make way to just runu python tests in one seperate instance
|
|
|
|
- env: PYTHON=true
|
|
|
|
include:
|
|
|
|
# using latest to run python on since it will last the longest
|
|
|
|
- php: 7.1
|
|
|
|
env: PYTHON=true
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- silan
|
|
|
|
- liquidsoap
|
|
|
|
- liquidsoap-plugin-mad
|
|
|
|
- liquidsoap-plugin-taglib
|
|
|
|
- liquidsoap-plugin-flac
|
|
|
|
- liquidsoap-plugin-ogg
|
|
|
|
- liquidsoap-plugin-lame
|
|
|
|
- liquidsoap-plugin-faad
|
|
|
|
- liquidsoap-plugin-vorbis
|
|
|
|
- liquidsoap-plugin-opus
|
|
|
|
- python-nose
|
|
|
|
- python-rgain
|
|
|
|
- python-gst-1.0
|
|
|
|
- mp3gain
|
2017-02-20 21:47:53 +01:00
|
|
|
install:
|
2017-02-28 14:07:34 +01:00
|
|
|
- >
|
|
|
|
if [[ "$PYTHON" == false ]]; then
|
|
|
|
composer install
|
|
|
|
fi
|
|
|
|
- >
|
|
|
|
if [[ "$PYTHON" == true ]]; then
|
2017-03-04 16:35:11 +01:00
|
|
|
pip install --user mkdocs
|
2017-02-28 14:07:34 +01:00
|
|
|
pushd python_apps/airtime_analyzer
|
|
|
|
python setup.py install --dry-run --no-init-script
|
|
|
|
popd
|
|
|
|
fi
|
2017-02-20 21:47:53 +01:00
|
|
|
before_script:
|
2017-02-28 14:07:34 +01:00
|
|
|
# prepare the database as per docs/testing.md
|
2017-02-20 21:47:53 +01:00
|
|
|
- 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
|
2017-02-28 12:16:03 +01:00
|
|
|
- mkdir -p /tmp/log/libretime
|
2017-02-20 21:47:53 +01:00
|
|
|
script:
|
2017-03-04 09:48:25 +01:00
|
|
|
- ./travis/php.sh
|
|
|
|
- ./travis/python.sh
|
2017-03-04 14:47:23 +01:00
|
|
|
deploy:
|
2017-03-19 11:20:28 +01:00
|
|
|
- provider: pages
|
2017-03-04 14:47:23 +01:00
|
|
|
skip_cleanup: true
|
|
|
|
local_dir: build/docs
|
|
|
|
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
|
|
|
|
target_branch: master
|
2017-03-04 16:02:59 +01:00
|
|
|
repo: LibreTime/LibreTime.github.io
|
|
|
|
project_name: LibreTime
|
2017-03-04 14:47:23 +01:00
|
|
|
fqdn: libretime.org
|
|
|
|
name: R. LibreTime DocBot
|
|
|
|
on:
|
|
|
|
branch: master
|
2017-03-05 14:54:32 +01:00
|
|
|
condition: $PYTHON = true
|
2017-03-19 11:20:28 +01:00
|
|
|
- provider: script
|
|
|
|
skip_cleanup: true
|
|
|
|
script: travis/release.sh
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
condition: $PYTHON = true
|
|
|
|
- provider: releases
|
|
|
|
skip_cleanup: true
|
|
|
|
api_key: $GITHUB_TOKEN
|
|
|
|
file_glob: true
|
|
|
|
file: build/libretime-*.tar.gz
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
condition: $PYTHON = true
|