test CI
parent
6b354c1823
commit
31168d4c98
|
@ -0,0 +1,10 @@
|
|||
# Select image from https://hub.docker.com/
|
||||
image: nextcloud:latest
|
||||
|
||||
before_script:
|
||||
# Install dependencies
|
||||
- bash ci/docker_install.sh
|
||||
|
||||
test:app:
|
||||
script:
|
||||
- phpunit --configuration /data/gpxedit/phpunit.xml
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
# We need to install dependencies only for Docker
|
||||
[[ ! -e /.dockerenv ]] && exit 0
|
||||
|
||||
set -xe
|
||||
|
||||
apt-get update -yqq
|
||||
apt-get install git -yqq
|
||||
|
||||
curl --location --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
|
||||
chmod +x /usr/local/bin/phpunit
|
||||
|
||||
cd /data/apps/
|
||||
git clone https://gitlab.com/eneiluj/gpxedit-oc gpxedit
|
||||
|
||||
ls /data
|
||||
ls /data/apps
|
Loading…
Reference in New Issue