Skip to content

Commit

Permalink
Updated Travis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Shevchuk authored and Anton Shevchuk committed Mar 28, 2017
1 parent 50d3718 commit e442029
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
26 changes: 3 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,14 @@ php:
- 7.0
- 7.1
install:
# ImageMagick
#- printf "\n" | pecl install imagick
# Composer
- rm -rf ./*
- composer self-update
- composer create-project bluzphp/skeleton --stability=dev
# Database
- mysql -e 'CREATE DATABASE bluz;'
# composer require
- cd skeleton
- ENV=default composer require bluzphp/module-test
# Newman
- npm install -g newman@1
- composer install -n --prefer-source
script:
- mkdir .reports
# Code style
- php vendor/bin/phpcs ./application --standard=PSR1,PSR2 --encoding=utf-8 --ignore=./application/_loader.php
- php vendor/bin/phpcs ./src --standard=PSR1,PSR2 --encoding=utf-8
# PHPUnit tests
- php vendor/bin/phpunit --configuration ./phpunit.xml.dist --coverage-clover=.reports/clover.xml
# WebServer run
- nohup bash -c "php -S 127.0.0.1:8000 -t ./public/ ./public/routing.php 2>&1 &" && sleep 1; cat nohup.out
# Newman run
- newman -k -c tests/postman/collection.json -e tests/postman/environment.json -x -t .reports/newman.xml -O .reports/newman.log
- newman -k -c tests/postman/test/collection.json -e tests/postman/test/environment.json -x -t .reports/newman.xml -O .reports/newman.log
after_script:
- php vendor/bin/coveralls -v
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover .reports/clover.xml
- php vendor/bin/phpunit --configuration ./phpunit.xml.dist
notifications:
email: false
webhooks:
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"require-dev": {
"composer/composer": "~1.0",
"composer/installers": "~1.0",
"squizlabs/php_codesniffer": "~2.3",
"phpunit/phpunit": "~5.7"
},
"autoload": {
Expand Down

0 comments on commit e442029

Please sign in to comment.