Merge pull request #1112 from zklosko/fix-travis

Fixing issues with Travis CI
This commit is contained in:
Kyle Robbertze 2020-11-21 21:39:54 +02:00 committed by GitHub
commit bfc9a697ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 25 deletions

View file

@ -7,6 +7,10 @@ env:
global:
- ENVIRONMENT=testing
- LIBRETIME_LOG_DIR=/tmp/log/libretime
before_install:
- sudo add-apt-repository -y ppa:libretime/libretime
- sudo apt-get -q update
addons:
apt:
@ -23,30 +27,34 @@ addons:
- liquidsoap-plugin-vorbis
- python3-gst-1.0
- silan
- gcc
- gir1.2-gtk-3.0
- python3-gi
- python3-gi-cairo
- python-cairo
- pkg-config
- libcairo2-dev
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.3
# stage: test
# - language: php
# php: 7.2
# 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.8
# stage: test
# - language: python
# python: 3.6
# stage: test
- language: python
python: 3.5
stage: test
@ -66,15 +74,18 @@ jobs:
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
# - language: php
# php: 7.3
# - language: php
# php: 7.2
# Ubuntu Bionic cloud image uses Python 3.6.9
# - language: python
# python: 3.8
# https://github.com/LibreTime/libretime/issues/1041
- language: python
python: 3.5
# - language: python
# python: 3.5
- language: php
php: 5.6
install: ./travis/install.sh
before_script:

View file

@ -6,7 +6,6 @@ if [[ -n "$TRAVIS_PHP_VERSION" ]]; then
composer install
fi
if [[ -n "$TRAVIS_PYTHON_VERSION" ]]; then
pyenv local $TRAVIS_PYTHON_VERSION
pushd python_apps/airtime_analyzer
pip3 install -e .
popd

View file

@ -8,7 +8,6 @@ if [[ -n "$TRAVIS_PHP_VERSION" ]]; then
popd
fi
if [[ -n "$TRAVIS_PYTHON_VERSION" ]]; then
pyenv local $TRAVIS_PYTHON_VERSION
pushd python_apps/airtime_analyzer
nosetests
popd