humhub/.travis.yml

55 lines
1.2 KiB
YAML
Raw Normal View History

2015-03-31 08:06:48 +02:00
language: php
2015-07-11 10:36:02 +02:00
php:
- 5.6
- 7.0
2017-01-26 23:32:51 +01:00
- 7.1
2018-01-27 22:01:49 +01:00
2015-07-11 10:36:02 +02:00
matrix:
fast_finish: true
dist: trusty
2017-08-03 21:06:05 +02:00
sudo: required
2018-01-27 22:01:49 +01:00
addons:
chrome: stable
2018-01-27 22:01:49 +01:00
2015-07-11 10:36:02 +02:00
# cache vendor dirs
cache:
directories:
- $HOME/.composer/cache
2015-03-31 08:06:48 +02:00
services: mysql
2015-08-02 20:47:48 +02:00
before_install:
- wget https://chromedriver.storage.googleapis.com/2.40/chromedriver_linux64.zip
2018-01-27 22:36:13 +01:00
- unzip -d $HOME chromedriver_linux64.zip
2018-01-27 22:14:55 +01:00
- $HOME/chromedriver --url-base=/wd/hub &
2015-08-02 20:47:48 +02:00
2015-07-11 10:36:02 +02:00
install:
2016-12-19 00:17:19 +01:00
# Run Composer update
2015-07-11 10:36:02 +02:00
- travis_retry composer self-update && composer --version
2018-03-05 21:00:26 +01:00
- travis_retry composer install --prefer-dist --no-interaction
2015-07-11 10:36:02 +02:00
- |
mysql -e 'CREATE DATABASE `humhub_test` CHARACTER SET utf8 COLLATE utf8_general_ci;'
2018-03-05 21:00:26 +01:00
cd $TRAVIS_BUILD_DIR/protected/humhub/tests
2018-01-28 22:03:53 +01:00
php codeception/bin/yii migrate/up --includeModuleMigrations=1 --interactive=0
php codeception/bin/yii installer/auto
php codeception/bin/yii search/rebuild
2018-03-05 21:00:26 +01:00
php ../../vendor/bin/codecept build
2015-07-11 10:36:02 +02:00
script:
- |
cd $TRAVIS_BUILD_DIR
php -S 127.0.0.1:8080 &> /dev/null &
2016-12-18 23:51:15 +01:00
- sleep 5
- curl --fail http://127.0.0.1:8080/index-test.php
2015-07-11 10:36:02 +02:00
- |
2018-03-05 21:00:26 +01:00
cd $TRAVIS_BUILD_DIR/protected/humhub/tests
php ../../vendor/bin/codecept run --env travis
2016-12-19 01:25:23 +01:00
after_failure:
2018-07-02 16:14:18 +02:00
- cd ../../runtime/logs
2017-01-26 23:32:51 +01:00
- ls
2018-07-02 16:14:18 +02:00
- cat app.log