22 Star 85 Fork 47

liufee / cms

Gitee — Enterprise-level DevOps R&D management platform
Join Gitee
Clone or download
.travis.yml 1.21 KB
Copy Edit Web IDE Raw Blame History
liufee authored 2020-08-11 08:27 . fix:travis tests
language: php
php:
#- 5.4
#- 5.5
- 5.6
#- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
# - hhvm
# faster builds on new travis setup not using sudo
sudo: false
# cache vendor dirs
cache:
directories:
- $HOME/.composer/cache
services:
- mysql
install:
- travis_retry composer self-update && composer --version && composer clearcache
- travis_retry composer update --prefer-dist --no-interaction
# setup application:
- |
./init --env=Development
sed -i s/root/travis/ common/config/main-local.php
sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" frontend/config/main.php
sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" backend/config/main.php
before_script:
- sudo service mysql start
- mysql -e 'CREATE DATABASE cms_test;'
- echo "extension = imagick.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- printf "\n" | pecl install -f imagick
- php yii_test migrate --interactive=0 frontendUri=//localhost adminUsername=admin adminPassword=123456
- cp -rf api/tests/acceptance.suite.yml.example api/tests/acceptance.suite.yml
- cp -rf api/tests/functional.suite.yml.example api/tests/functional.suite.yml
- cd frontend/web && php -S 0.0.0.0:8888 &
script:
- vendor/bin/codecept run

Comment ( 0 )

Sign in for post a comment

PHP
1
https://git.oschina.net/liufee/cms.git
git@git.oschina.net:liufee/cms.git
liufee
cms
cms
master

Search

181749 a2d7925e 1850385 181749 9f8568a7 1850385