Improve travis config

- Include PHP nightly build
- Keep composer packages cached for faster testing
- Uniform indentation (2 spaces)
- Let travis manage composer updates (don't self-update)
parent e8400d66
dist: trusty
sudo: required
language: php
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
language: php
cache:
directories:
- $HOME/.composer/cache
php:
- 5.5
- 5.6
- 7.0
- hhvm
- 5.5
- 5.6
- 7.0
- nightly
- hhvm
matrix:
allow_failures:
- php: nightly
- php: hhvm
fast_finish: true
notifications:
on_success: never
on_failure: always
on_success: never
on_failure: always
git:
depth: 1
before_install:
- composer self-update
install:
- travis_retry composer install --no-interaction
- travis_retry composer install --prefer-dist --no-interaction
before_script:
- mysql -u root -e 'create database telegrambot; use telegrambot; source structure.sql;'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment