mirror of
https://github.com/humhub/humhub.git
synced 2025-01-18 06:38:14 +01:00
49 lines
929 B
YAML
49 lines
929 B
YAML
language: php
|
|
sudo: required
|
|
|
|
services:
|
|
- mysql
|
|
|
|
addons:
|
|
chrome: stable
|
|
|
|
git:
|
|
depth: 3
|
|
|
|
php:
|
|
- 5.6
|
|
- 7.0
|
|
- 7.1
|
|
- 7.2
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.composer/cache
|
|
|
|
before_install:
|
|
- echo $TRAVIS_PHP_VERSION
|
|
|
|
install:
|
|
- .travis/install-dependencies.sh
|
|
- .travis/setup-humhub.sh
|
|
|
|
before_script:
|
|
- $HOME/chromedriver --url-base=/wd/hub &
|
|
- php --server 127.0.0.1:8080 --docroot ${TRAVIS_BUILD_DIR} &>/dev/null &
|
|
- sleep 5
|
|
- curl --fail --head http://127.0.0.1:8080/index-test.php
|
|
|
|
script:
|
|
- cd protected/humhub/tests
|
|
- php ../../vendor/bin/codecept build
|
|
- php ../../vendor/bin/codecept run --env travis --coverage --coverage-xml
|
|
|
|
after_failure:
|
|
- cd ../../
|
|
- find humhub/ -type d -name "_output" -exec zip -r --exclude="*.gitignore" failure.zip {} +
|
|
- zip -ur failure.zip runtime/logs
|
|
- curl --upload-file ./failure.zip https://transfer.sh/humhub-travis-${TRAVIS_JOB_NUMBER}.zip
|
|
- rm failure.zip |