Skip to content

Commit

Permalink
Added travis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertrand Dunogier committed Jul 1, 2019
1 parent e735a24 commit 4bc4e02
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
27 changes: 23 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,35 @@ cache:
- $HOME/.composer/cache/files

env:
matrix:
- TARGET="phpspec"
- TARGET="codestyle"
global:
- EZPLATFORM_REPO="https://github.com/ezsystems/ezplatform.git"
- SYMFONY_ENV=behat
- SYMFONY_DEBUG=1

matrix:
include:
- name: "Unit tests with PhpSpec"
env:
- TARGET="phpspec"
- name: "Code style"
env:
- TARGET="codestyle"
- name: "Behat"
env:
- TARGET="behat"
- COMPOSE_FILE="doc/docker/base-dev.yml"
- BEHAT_OPTS="--mode=behat --profile=graphql --suite=graphql"

install:
- if [ $TARGET == "behat" ]; then ./.travis/prepare_ezplatform.sh ${INSTALL_EZ_INSTALL_TYPE}; fi

before_script:
- COMPOSER_MEMORY_LIMIT=-1 composer install
- if [ "$TARGET" != "behat" ]; then COMPOSER_MEMORY_LIMIT=-1 composer install; fi

script:
- if [ "$TARGET" == "phpspec" ] ; then ./vendor/bin/phpspec run --format=pretty; fi
- if [ "$TARGET" == "codestyle" ] ; then ./vendor/bin/php-cs-fixer fix --dry-run -v --show-progress=estimating; fi
- if [ "$TARGET" == "behat" ]; then cd "$HOME/build/ezplatform"; docker-compose exec --user www-data app sh -c "bin/ezbehat ${BEHAT_OPTS}" ; fi

notification:
email: false
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
"dev-master": "1.0.x-dev",
"dev-tmp_ci_branch": "1.0.x-dev"
},
"_ezplatform_branch_for_behat_tests": "2.5"
},
Expand Down

0 comments on commit 4bc4e02

Please sign in to comment.