Skip to content
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.

Fix travis #63

Merged
merged 2 commits into from Dec 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 2 additions & 21 deletions .travis.yml
Expand Up @@ -3,6 +3,7 @@ language: php
php:
- 7.1
- 7.2
- 7.3

# faster builds on new travis setup not using sudo
sudo: false
Expand All @@ -16,26 +17,6 @@ install:
- travis_retry composer self-update && composer --version
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- travis_retry composer install --dev --prefer-dist --no-interaction
# install php extensions
- |
pear config-set preferred_state beta
printf "\n" | pecl install imagick
# gmagick is not installed on travis currently
#printf "\n" | pecl install gmagick
# setup database:
- mysql -e 'CREATE DATABASE yii2test;';
# setup application:
- |
php install.php init/all --config=tests/travis/install-config.php --interactive=0
sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" config/web.php
cd tests/codeception/backend && codecept build
cd ../console && codecept build
cd ../../../

before_script:
- cd tests/codeception/bin && php yii migrate --interactive=0 && cd ../../..

script:
- |
php -S localhost:8080 -t web > /dev/null 2>&1 &
composer exec 'codecept run -s acceptance' -vv
- ./vendor/bin/phpunit
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -17,9 +17,9 @@ features to your application.

[Yii Framework]: http://www.yiiframework.com/

[![Latest Stable Version](https://img.shields.io/packagist/v/yiisoft/yii-app.svg)](https://packagist.org/packages/yiisoft/yii-app)
[![Total Downloads](https://img.shields.io/packagist/dt/yiisoft/yii-app.svg)](https://packagist.org/packages/yiisoft/yii-app)
[![Build Status](https://travis-ci.org/yiisoft/yii-app.svg?branch=master)](https://travis-ci.org/yiisoft/yii-app)
[![Latest Stable Version](https://img.shields.io/packagist/v/yiisoft/yii-base-web.svg)](https://packagist.org/packages/yiisoft/yii-base-web)
[![Total Downloads](https://img.shields.io/packagist/dt/yiisoft/yii-base-web.svg)](https://packagist.org/packages/yiisoft/yii-base-web)
[![Build Status](https://travis-ci.org/yiisoft/yii-base-web.svg?branch=master)](https://travis-ci.org/yiisoft/yii-base-web)

DIRECTORY STRUCTURE
-------------------
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -38,7 +38,8 @@
"require-dev": {
"yiisoft/yii-debug": "dev-master",
"yiisoft/yii-gii": "dev-master",
"phpunit/phpunit": "^7.0"
"yiisoft/yii-bootstrap4": "dev-master",
"phpunit/phpunit": "^7.3"
},
"extra": {
"branch-alias": {
Expand Down