still trying to make gitlab ci work

This commit is contained in:
Marcel Kapfer (mmk2410) 2016-06-04 16:46:36 +02:00
parent 6b7bf70ec1
commit 25f1ff3188
2 changed files with 17 additions and 4 deletions

View File

@ -1,13 +1,11 @@
image: php:7.0
before_script:
- apt-get update
- apt-get install -y wget
- wget https://phar.phpunit.de/phpunit.phar
- bash ci/docker_install.sh > /dev/null
stages:
- test
test:
script:
- php phpunit.phar tests/
- phpunit tests/

15
ci/docker_install.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
# Only install dependencies for Docker
[[ ! -e /.dockerenv ]] && [[ ! -e /.dockerinit ]] && exit 0
set -xe
# Install git
apt-get update -yqq
apt-get install git -yqq
# Install phpunit
curl -o /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
chmod +x /usr/local/bin/phpunit