circleci: Update to build native package

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Federico Ceratto 2017-10-26 01:00:42 +01:00 committed by Sunil Mohan Adapa
parent 34ae273692
commit 8ace9046c3
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -34,31 +34,32 @@ jobs:
name: install plinth dependencies
command: |
export DEBIAN_FRONTEND=noninteractive
apt update
apt-get update
# Dependencies of the plinth Debian package
apt-get install -y $(apt-cache depends plinth | grep Depends | sed "s/.*ends:\ //" | tr '\n' ' ' | tr -d '<>')
# Fix plinth Debian package dependencies
apt remove -y gir1.2-networkmanager-1.0
apt install -y gir1.2-nm-1.0
apt-get build-dep -y .
# New dependencies not yet in the Debian package
# Remove dependencies from here after new deb package release
apt install -y python3-django-axes python3-django-captcha
# apt-get install -y
# Build dependencies
apt install -y build-essential python3-setuptools
apt-get install -y build-essential
# Test dependencies
apt install -y python3-coverage sshpass parted
apt-get install -y sshpass parted
# Module dependencies
cd ~/Plinth
apt install -y `./run --list-dependencies`
apt-get install -y $(./run --list-dependencies)
- run:
name: run tests
name: run Debian build
# FIXME: enable testing after flagging integration tests
command: DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -us -uc -b
- run:
name: run integration tests
command: |
adduser tester --gecos "First Last,RoomNumber,WorkPhone,HomePhone" --disabled-password
echo "tester:password" | chpasswd