Reverting to Bionic tests, moving up Python tests
This commit is contained in:
parent
1758f3bf88
commit
314695f8f9
|
@ -24,9 +24,7 @@ apt-get install -y gstreamer1.0-plugins-base \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
libcairo2-dev \
|
libcairo2-dev \
|
||||||
postgresql \
|
postgresql \
|
||||||
postgresql-client
|
postgresql-client \
|
||||||
|
|
||||||
apt-get install -y php7.0 \
|
|
||||||
php7.0-curl \
|
php7.0-curl \
|
||||||
php7.0-gd \
|
php7.0-gd \
|
||||||
php7.0-pgsql \
|
php7.0-pgsql \
|
||||||
|
|
|
@ -10,45 +10,13 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# test-bionic:
|
test-bionic:
|
||||||
# runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
# steps:
|
|
||||||
# - uses: actions/checkout@v2
|
|
||||||
# - uses: actions/setup-python@v2
|
|
||||||
# with:
|
|
||||||
# python-version: '3.6'
|
|
||||||
# - name: Setup PostgreSQL
|
|
||||||
# run: |
|
|
||||||
# sudo systemctl start postgresql.service
|
|
||||||
# pg_isready
|
|
||||||
# sudo -u postgres psql -c 'CREATE DATABASE libretime;'
|
|
||||||
# sudo -u postgres psql -c "CREATE USER libretime WITH PASSWORD 'libretime';"
|
|
||||||
# sudo -u postgres psql -c 'GRANT CONNECT ON DATABASE libretime TO libretime;'
|
|
||||||
# sudo -u postgres psql -c 'ALTER USER libretime CREATEDB;'
|
|
||||||
# - name: Setup PHP with specific version
|
|
||||||
# uses: shivammathur/setup-php@v2
|
|
||||||
# with:
|
|
||||||
# php-version: '7.2'
|
|
||||||
# - run: ENVIRONMENT=testing && LIBRETIME_LOG_DIR=/tmp/log/libretime
|
|
||||||
# - name: Install prerequisites
|
|
||||||
# run: sudo bash ./.github/scripts/install-bionic.sh
|
|
||||||
# - name: Run PHP tests
|
|
||||||
# run: |
|
|
||||||
# composer install
|
|
||||||
# cd airtime_mvc/tests
|
|
||||||
# sudo bash ../../vendor/bin/phpunit
|
|
||||||
# cd ../..
|
|
||||||
# - name: Run Python tests
|
|
||||||
# run: |
|
|
||||||
# sudo bash ./.github/scripts/python-pkg-install.sh
|
|
||||||
# sudo bash ./.github/scripts/python-pkg-test.sh
|
|
||||||
test-xenial:
|
|
||||||
runs-on: ubuntu-16.04
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.5'
|
python-version: '3.6'
|
||||||
- name: Setup PostgreSQL
|
- name: Setup PostgreSQL
|
||||||
run: |
|
run: |
|
||||||
sudo systemctl start postgresql.service
|
sudo systemctl start postgresql.service
|
||||||
|
@ -60,17 +28,48 @@ jobs:
|
||||||
- name: Setup PHP with specific version
|
- name: Setup PHP with specific version
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: '7.0'
|
php-version: '7.2'
|
||||||
- run: ENVIRONMENT=testing && LIBRETIME_LOG_DIR=/tmp/log/libretime
|
- run: ENVIRONMENT=testing && LIBRETIME_LOG_DIR=/tmp/log/libretime
|
||||||
- name: Install prerequisites
|
- name: Install prerequisites
|
||||||
run: sudo bash ./.github/scripts/install-xenial.sh
|
run: sudo bash ./.github/scripts/install-bionic.sh
|
||||||
|
- name: Run Python tests
|
||||||
|
run: |
|
||||||
|
sudo bash ./.github/scripts/python-pkg-install.sh
|
||||||
|
sudo bash ./.github/scripts/python-pkg-test.sh
|
||||||
- name: Run PHP tests
|
- name: Run PHP tests
|
||||||
run: |
|
run: |
|
||||||
composer install
|
composer install
|
||||||
cd airtime_mvc/tests
|
cd airtime_mvc/tests
|
||||||
sudo bash ../../vendor/bin/phpunit
|
sudo bash ../../vendor/bin/phpunit
|
||||||
cd ../..
|
# test-xenial:
|
||||||
- name: Run Python tests
|
# runs-on: ubuntu-16.04
|
||||||
run: |
|
# steps:
|
||||||
sudo bash ./.github/scripts/python-pkg-install.sh
|
# - uses: actions/checkout@v2
|
||||||
sudo bash ./.github/scripts/python-pkg-test.sh
|
# - uses: actions/setup-python@v2
|
||||||
|
# with:
|
||||||
|
# python-version: '3.5'
|
||||||
|
# - name: Setup PostgreSQL
|
||||||
|
# run: |
|
||||||
|
# sudo systemctl start postgresql.service
|
||||||
|
# pg_isready
|
||||||
|
# sudo -u postgres psql -c 'CREATE DATABASE libretime;'
|
||||||
|
# sudo -u postgres psql -c "CREATE USER libretime WITH PASSWORD 'libretime';"
|
||||||
|
# sudo -u postgres psql -c 'GRANT CONNECT ON DATABASE libretime TO libretime;'
|
||||||
|
# sudo -u postgres psql -c 'ALTER USER libretime CREATEDB;'
|
||||||
|
# - name: Setup PHP with specific version
|
||||||
|
# uses: shivammathur/setup-php@v2
|
||||||
|
# with:
|
||||||
|
# php-version: '7.0'
|
||||||
|
# - run: ENVIRONMENT=testing && LIBRETIME_LOG_DIR=/tmp/log/libretime
|
||||||
|
# - name: Install prerequisites
|
||||||
|
# run: sudo bash ./.github/scripts/install-xenial.sh
|
||||||
|
# - name: Run Python tests
|
||||||
|
# run: |
|
||||||
|
# sudo bash ./.github/scripts/python-pkg-install.sh
|
||||||
|
# sudo bash ./.github/scripts/python-pkg-test.sh
|
||||||
|
# - name: Run PHP tests
|
||||||
|
# run: |
|
||||||
|
# composer install
|
||||||
|
# cd airtime_mvc/tests
|
||||||
|
# sudo bash ../../vendor/bin/phpunit
|
||||||
|
# cd ../..
|
Loading…
Reference in New Issue