Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 10 - prepare test environment and start refactoring #18

Merged
merged 14 commits into from
Aug 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
/vendor/
/satis.json
/web
/output/

/composer.phar

25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
language: php

sudo: false
dist: trusty

php:
- 7.1
- 7.2
- nightly

cache:
directories:
- $HOME/.composer/cache

matrix:
include:
- php: 7.1
env: deps=update
fast_finish: true

before_script:
- if [ "$deps" == "update" ]; then composer update --prefer-dist; fi
- if [ "$deps" != "update" ]; then composer install --prefer-dist; fi

script: vendor/bin/phpunit -c phpunit.xml.dist
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.PHONY: test install

test: install
vendor/bin/phpunit -c phpunit.xml.dist \
--log-junit output/junit-report.xml \
--coverage-clover output/clover.xml \
--coverage-html output/coverage

install: composer.phar
php composer.phar install

composer.phar:
curl -s https://getcomposer.org/installer | php
chmod +x composer.phar


9 changes: 7 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,18 @@
"autoload": {
"psr-4": {"": "src/"}
},
"autoload-dev": {
"psr-4": {"MBO\\SatisGitlab\\": "test/functional"}
},
"bin": [
"bin/satis-gitlab"
],
"require": {
"m4tthumphrey/php-gitlab-api": "^9.6",
"php-http/guzzle6-adapter": "^1.1",
"guzzlehttp/guzzle": "~6.0",
"symfony/console": "^3.4",
"composer/satis": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^5|^7"
}
}
Loading