Establishing Xenial test workflow

This commit is contained in:
Zachary Klosko 2020-11-30 21:00:10 -05:00
parent b6d22c94a1
commit 977f5e9669
2 changed files with 68 additions and 0 deletions

29
.github/workflows/test-xenial.md vendored Normal file
View File

@ -0,0 +1,29 @@
name: test-xenial
on:
push:
paths-ignore:
- 'docs/**'
jobs:
test-xenial:
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.5'
- uses: harmon758/postgresql-action@v1
with:
postgresql version: '11'
postgresql db: 'libretime'
postgresql user: 'libretime'
postgresql password: 'libretime'
- run: ENVIRONMENT=testing && LIBRETIME_LOG_DIR=/tmp/log/libretime
- run: psql -c 'ALTER USER libretime CREATEDB;' -U postgres
- run: sudo bash dev_tools/ci/install.sh
- run: sudo composer install
- run: sudo pip3 install -e python_apps/airtime_analyzer/.
- run: sudo pip3 install -e python_apps/airtime-celery/.
- run: sudo pip3 install -e python_apps/api_clients/.
- run: sudo pip3 install -e python_apps/pypo/.
- run: nosetests python_apps/airtime_analyzer/.
- run: nosetests python_apps/api_clients/.

39
dev_tools/ci/install.sh Normal file
View File

@ -0,0 +1,39 @@
#/bin/bash
add-apt-repository -y ppa:libretime/libretime
apt-get -q update
apt-get install -y 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 \
iquidsoap-plugin-mad \
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 \
php \
php-curl \
php-gd \
php-pgsql
cd ../../python_apps/airtime_analyzer
pip3 install -e .
cd ../../python_apps/airtime-celery
pip3 install -e .
cd ../../python_apps/api_clients
pip3 install -e .
cd ../../python_apps/pypo
pip3 install -e .