From 977f5e96690cfc997c8a082c1b84fc6a99e2a24f Mon Sep 17 00:00:00 2001 From: Zachary Klosko Date: Mon, 30 Nov 2020 21:00:10 -0500 Subject: [PATCH] Establishing Xenial test workflow --- .github/workflows/test-xenial.md | 29 ++++++++++++++++++++++++ dev_tools/ci/install.sh | 39 ++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 .github/workflows/test-xenial.md create mode 100644 dev_tools/ci/install.sh diff --git a/.github/workflows/test-xenial.md b/.github/workflows/test-xenial.md new file mode 100644 index 000000000..074b04494 --- /dev/null +++ b/.github/workflows/test-xenial.md @@ -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/. diff --git a/dev_tools/ci/install.sh b/dev_tools/ci/install.sh new file mode 100644 index 000000000..3450290cb --- /dev/null +++ b/dev_tools/ci/install.sh @@ -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 . \ No newline at end of file