rhymix/.travis.yml
Kijin Sung f11d3053f3 Update .travis.yml
- Codeception 2.2는 PHP 7.2에서 작동하지 않음
- Codeception 2.3은 PHP 7.2에서 작동하나, 세션이 저장되지 않아서 설치 도중 DB 에러가 남
- 아직 해결하지 못했으나 일단 버전만 변경함
2018-03-07 14:49:12 +09:00

29 lines
963 B
YAML

distro: trusty
sudo: false
language: php
php:
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
matrix:
allow_failures:
- php: 7.2
services:
- mysql
before_script:
- npm install grunt grunt-cli grunt-contrib-jshint grunt-contrib-csslint grunt-phplint --save-dev
- mysql -u root -e "CREATE DATABASE rhymix CHARSET utf8mb4 COLLATE utf8mb4_unicode_ci"
- mysql -u root -e "GRANT ALL PRIVILEGES ON rhymix.* TO travis@localhost"
- mysql -u root -e "UPDATE mysql.user SET Password = PASSWORD('travis') WHERE User = 'travis'; FLUSH PRIVILEGES"
- phpenv config-rm xdebug.ini
- php -S localhost:8000 &
- if [[ $TRAVIS_PHP_VERSION != "7.2" ]]; then wget https://codeception.com/releases/2.1.11/codecept.phar; fi
- if [[ $TRAVIS_PHP_VERSION == "7.2" ]]; then wget https://codeception.com/releases/2.3.9/codecept.phar; fi
script:
- php codecept.phar build
- php codecept.phar run --debug --fail-fast --env travis
- grunt lint
notifications:
email: false