Skip to content

Commit

Permalink
Add test setup (#9)
Browse files Browse the repository at this point in the history
test: add basic test setup

Closes #5
  • Loading branch information
gearsdigital committed Jun 27, 2019
1 parent 1af8c34 commit b32545b
Show file tree
Hide file tree
Showing 7 changed files with 2,018 additions and 485 deletions.
25 changes: 24 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
image: thecodingmachine/php:7.2-v1-apache

cache:
key: ${CI_COMMIT_REF_SLUG}

stages:
- build
- test

build:
stage: build
cache:
paths:
- vendor
script:
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
- php composer-setup.php
- php -r "unlink('composer-setup.php');"
- php composer.phar install

test:
stage: test
cache:
paths:
- vendor
script:
- echo "run tests..."
- ./vendor/bin/phpunit --bootstrap vendor/autoload.php tests

74 changes: 0 additions & 74 deletions KirbyReporter.php

This file was deleted.

7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@
}
],
"autoload": {
"files": [
"KirbyReporter.php"
],
"psr-4": {
"KirbyReporter\\": "lib/"
}
},
"require": {
"ql/uri-template": "^1.1",
"guzzlehttp/guzzle": "~6.0",
"league/fractal": "^0.18.0",
"ext-json": "*"
},
"config": {
"optimize-autoloader": true
},
"require-dev": {
"phpunit/phpunit": "^8"
}
}
Loading

0 comments on commit b32545b

Please sign in to comment.