2017-02-28 14:07:34 +01:00
|
|
|
dist: trusty
|
2020-04-23 14:43:13 +02:00
|
|
|
version: ~> 1.0
|
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
|
2019-03-28 11:19:02 +01:00
|
|
|
- 7.3
|
2018-10-12 20:03:07 +02:00
|
|
|
- 7.2
|
2017-02-28 14:07:34 +01:00
|
|
|
- 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
|
2020-04-23 18:38:09 +02:00
|
|
|
jobs:
|
2017-02-28 14:07:34 +01:00
|
|
|
- PYTHON=false
|
|
|
|
- PYTHON=true
|
2020-04-23 18:38:09 +02:00
|
|
|
jobs:
|
2017-02-28 14:07:34 +01:00
|
|
|
allow_failures:
|
|
|
|
# there are currently some testing issues with DateTime precision on 7.1
|
|
|
|
- env: PYTHON=false
|
|
|
|
php: 7.1
|
2018-10-12 20:03:07 +02:00
|
|
|
# there are some issues with phpunit as well as some deep in zf1 on 7.2
|
|
|
|
- env: PYTHON=false
|
|
|
|
php: 7.2
|
2019-03-28 11:19:02 +01:00
|
|
|
# there are some issues with phpunit as well as some deep in zf1 on 7.3
|
2020-04-23 18:14:02 +02:00
|
|
|
- env: PYTHON=false
|
2019-03-28 11:19:02 +01:00
|
|
|
php: 7.3
|
2020-04-23 18:50:39 +02:00
|
|
|
exclude:
|
2020-04-23 19:26:08 +02:00
|
|
|
# we need to explicitly exclude python for every version of php other than 7.3 to make way to just run python tests in one seperate instance
|
|
|
|
- env: PYTHON=true
|
|
|
|
php: 7.2
|
|
|
|
- env: PYTHON=true
|
|
|
|
php: 7.1
|
|
|
|
- env: PYTHON=true
|
|
|
|
php: 7.0
|
2020-04-23 18:50:39 +02:00
|
|
|
- env: PYTHON=true
|
2020-04-23 19:17:43 +02:00
|
|
|
php: 5.6
|
2020-04-23 19:26:08 +02:00
|
|
|
- env: PYTHON=true
|
2020-04-23 19:17:43 +02:00
|
|
|
php: 5.4
|
2017-02-28 14:07:34 +01:00
|
|
|
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
|
2020-01-20 13:44:17 +01:00
|
|
|
- python3
|
2020-01-16 14:58:20 +01:00
|
|
|
- python3-nose
|
|
|
|
- python3-gst-1.0
|
|
|
|
- python3-magic
|
2019-04-23 19:08:48 +02:00
|
|
|
- dos2unix
|
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
|
2020-01-16 14:58:20 +01:00
|
|
|
pip3 install --user mkdocs rgain3
|
2017-02-28 14:07:34 +01:00
|
|
|
pushd python_apps/airtime_analyzer
|
2020-01-16 14:58:20 +01:00
|
|
|
python3 setup.py install --dry-run --no-init-script
|
2017-02-28 14:07:34 +01:00
|
|
|
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
|
2017-04-25 11:06:28 +02:00
|
|
|
script: ./travis/release.sh
|
2017-03-19 11:20:28 +01:00
|
|
|
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
|