Initial commit,修正
This commit is contained in:
+42
@@ -0,0 +1,42 @@
|
||||
language: php
|
||||
|
||||
php:
|
||||
- 5.4
|
||||
- 5.5
|
||||
- 5.6
|
||||
- 7.0
|
||||
# - hhvm
|
||||
|
||||
# faster builds on new travis setup not using sudo
|
||||
sudo: false
|
||||
|
||||
# cache vendor dirs
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.composer/cache
|
||||
|
||||
install:
|
||||
- travis_retry composer self-update && composer --version
|
||||
- travis_retry composer global require "fxp/composer-asset-plugin:~1.1.1"
|
||||
- export PATH="$HOME/.composer/vendor/bin:$PATH"
|
||||
- travis_retry composer install --dev --prefer-dist --no-interaction
|
||||
# codeception
|
||||
- travis_retry composer global require "codeception/codeception=2.0.*" "codeception/specify=*" "codeception/verify=*"
|
||||
# setup application:
|
||||
- |
|
||||
cd tests
|
||||
codecept build
|
||||
cd ..
|
||||
|
||||
before_script:
|
||||
- mysql --version
|
||||
|
||||
# initialize databases
|
||||
- mysql -e 'CREATE DATABASE mdm_admin_test;';
|
||||
|
||||
script:
|
||||
- |
|
||||
cd tests/web
|
||||
php -S localhost:8080 > /dev/null 2>&1 &
|
||||
cd ..
|
||||
codecept run
|
||||
Reference in New Issue
Block a user