Bionic and Xenial tests work
Not sure what PHP version is being used for each, but composer install works on both tests
This commit is contained in:
parent
70b8b1bfe1
commit
34c511208c
|
@ -0,0 +1,28 @@
|
|||
#/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 \
|
||||
liquidsoap-plugin-mad \
|
||||
liquidsoap-plugin-vorbis \
|
||||
python3-gst-1.0 \
|
||||
silan \
|
||||
gcc \
|
||||
gir1.2-gtk-3.0 \
|
||||
python3-setuptools \
|
||||
python3-gi \
|
||||
python3-gi-cairo \
|
||||
python-cairo \
|
||||
pkg-config \
|
||||
libcairo2-dev \
|
||||
php \
|
||||
php-curl \
|
||||
php-gd \
|
||||
php-pgsql
|
|
@ -0,0 +1,6 @@
|
|||
#/bin/bash
|
||||
|
||||
pip3 install -e python_apps/airtime_analyzer/.
|
||||
pip3 install -e python_apps/airtime-celery/.
|
||||
pip3 install -e python_apps/api_clients/.
|
||||
pip3 install -e python_apps/pypo/.
|
|
@ -0,0 +1,12 @@
|
|||
#/bin/bash
|
||||
|
||||
# Starting at repo root
|
||||
|
||||
cd python_apps/airtime_analyzer
|
||||
nosetests .
|
||||
|
||||
cd ../api_clients
|
||||
nosetests .
|
||||
|
||||
# Reset to repo root
|
||||
cd ../..
|
|
@ -0,0 +1,30 @@
|
|||
name: test-bionic
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
pull_request:
|
||||
types: [opened, ready_for_review, review_requested]
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test-xenial:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.6'
|
||||
- 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: sudo bash ./.github/scripts/install.sh
|
||||
- run: sudo composer install
|
||||
- run: sudo bash ./.github/scripts/python-pkg-install.sh
|
||||
- run: sudo bash ./.github/scripts/python-pkg-test.sh
|
|
@ -7,7 +7,6 @@ on:
|
|||
types: [opened, ready_for_review, review_requested]
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
@ -25,12 +24,7 @@ jobs:
|
|||
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: ./dev_tools/ci/install.sh
|
||||
- run: composer install
|
||||
- run: pip3 install -e python_apps/airtime_analyzer/.
|
||||
- run: pip3 install -e python_apps/airtime-celery/.
|
||||
- run: pip3 install -e python_apps/api_clients/.
|
||||
- run: pip3 install -e python_apps/pypo/.
|
||||
- run: nosetests python_apps/airtime_analyzer/.
|
||||
- run: nosetests python_apps/api_clients/.
|
||||
- run: sudo bash ./.github/scripts/install.sh
|
||||
- run: sudo composer install
|
||||
- run: sudo bash ./.github/scripts/python-pkg-install.sh
|
||||
- run: sudo bash ./.github/scripts/python-pkg-test.sh
|
Loading…
Reference in New Issue