Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

100 lines (90 sloc) 3.179 kb
language: php
php:
- 5.5
- 5.6
- 7.0
- hhvm
branches:
except:
- 1.0
- 1.5
- 1.6
- 1.7
- 1.8
matrix:
fast_finish: true
allow_failures:
- php: 7.0
- php: hhvm
include:
# Lint checks for PHP code and composer.json
- php: 5.6
env: VARIA=true
install:
- phpenv rehash
- composer self-update
- composer install
script:
- bash .scripts/travis/check_commit_msgs.sh
- vendor/bin/phpcs --standard=vendor/elgg/sniffs/elgg.xml --warning-severity=0 --ignore=*/tests/*,*/upgrades/*,*/deprecated* engine/classes engine/lib
- composer validate
# Build and test javascript
- php: 5.6
env: VARIA=true
install:
- npm install
- composer install
script:
- npm test
# Build docs and check for errors
# Flags used here, not in `make html`:
# -n Run in nit-picky mode. Currently, this generates warnings for all missing references.
# -W Turn warnings into errors. This means that the build stops at the first warning and sphinx-build exits with exit status 1.
- php: 5.6
env: VARIA=true
install:
- sudo easy_install "Sphinx==1.2.2"
- sudo easy_install "sphinx-intl"
script:
- sphinx-build -b html -nW docs docs/_build/html
- sphinx-build -b latex -nW docs docs/_build/latex
- sphinx-intl --locale-dir=docs/locale/ build
- sphinx-build -b html -D language=es -n docs docs/_build/html
# End to end tests
- php: 5.6
env: E2E=true
install:
- composer self-update
- composer install
- mysql -e 'create database elgg;'
- echo "USE mysql; UPDATE user SET password=PASSWORD('password') WHERE user='root'; FLUSH PRIVILEGES;" | mysql -u root
- mkdir "${HOME}/elgg_data/"
- php -f ./install/cli/travis_installer.php
- php -S localhost:8888 index.php &
- sleep 3 # give Web server some time to bind to sockets, etc
script:
- curl -o - http://localhost:8888/ | grep "<title>Elgg Travis Site</title>"
- phpunit --coverage-clover=coverage.clover
after_script:
# Report unit test coverage metrics to scrutinizer
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
services:
- mysql
install:
- composer self-update
- composer install
- mysql -e 'create database elgg;'
- echo "USE mysql; UPDATE user SET password=PASSWORD('password') WHERE user='root'; FLUSH PRIVILEGES;" | mysql -u root
- mkdir "${HOME}/elgg_data/"
- php -f ./install/cli/travis_installer.php
script:
- phpunit
- php -f ./engine/tests/suite.php
notifications:
email:
secure: exC/ws07lLOj3Y43C89jiaKpyB8Yt7DPGSCShV4R3Wkw/hVVzjxt1BinPxzsyL5DC7APUMcTHGOhDB2oCE4ynDE6o6L9bH79fc+V8IYAiNaEIGL0AOuHdnRdGN9GMrr2jv78cZ5MctuUTkeYLaoOEyDGHmkMhqa6SufIDAY8b58=
webhooks:
urls:
- secure: "Ug81+4Fa2UFZetSCV79OWOgYi4uVgNQ6rVrVn2HElddOMDwuHxo9CYKoA3Q+joPKMtNFCN2qkMyoyUfIMM83uJi1LmaUx/c7lR1pXBFVgc4Xyt114NcY80I4OCWWKg0G1FDlSiaXil922JjeC3MekYoqjsIyUgabGihe6j7DWz0="
on_start: true
Jump to Line
Something went wrong with that request. Please try again.