Skip to content

Commit

Permalink
[TASK] Setup travis
Browse files Browse the repository at this point in the history
Resolves: TGT-1613
Releases: master, 9.1, 9.0, 8.7
  • Loading branch information
NeoBlack committed Feb 6, 2019
1 parent 3678e3d commit 0f7436d
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 142 deletions.
47 changes: 47 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
language: php
php:
- 7.0
- 7.1
- 7.2

env:
- UNIT_TESTS=yes
- PHP_LINT=yes
- PHP_CS_FIXER=yes

sudo: false

addons:
apt:
packages:
- parallel

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

before_script:
- mkdir -p logs
- rm -rf .build/
- composer install --no-interaction --no-progress

script:
- >
if [[ "$PHP_LINT" == "yes" ]]; then
echo;
echo "PHP lint";
find . -name \*.php ! -path "./.build/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;
fi
- >
if [[ "$PHP_CS_FIXER" == "yes" ]]; then
echo;
echo "PHP CS Fixer";
./.build/bin/php-cs-fixer fix --config Build/.php_cs.dist --format=junit > logs/php-cs-fixer.xml
fi
- >
if [[ "$UNIT_TESTS" == "yes" ]]; then
echo;
echo "Unit tests";
.build/vendor/phpunit/phpunit/phpunit -c Build/UnitTests.xml --log-junit logs/phpunit.xml --coverage-clover logs/coverage.xml --coverage-html logs/coverage/
fi
61 changes: 0 additions & 61 deletions Build/bamboo-container-functions.sh

This file was deleted.

40 changes: 0 additions & 40 deletions Build/bamboo.sh

This file was deleted.

41 changes: 0 additions & 41 deletions Build/docker-compose-bamboo.yml

This file was deleted.

0 comments on commit 0f7436d

Please sign in to comment.