Skip to content

Commit cf613de

Browse files
committed
Fix travis by using MariaDB.
Add PHP7.1 and HHVM to the mix.
1 parent df0ec8c commit cf613de

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.travis.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
sudo: required
22
language: php
33

4+
addons:
5+
mariadb: 10.1
6+
47
cache:
58
directories:
69
- $HOME/.composer/cache
710

811
matrix:
912
include:
10-
- php: 7
11-
env: cov=1
12-
- php: 7
13-
env: deps=low
13+
- php: 7.1
14+
env: COVERAGE=1
15+
- php: 7.1
16+
env: DEPS=low
17+
- php: 7.0
1418
- php: nightly
19+
- php: hhvm
1520
allow_failures:
1621
- php: nightly
22+
- php: hhvm
1723
fast_finish: true
1824

1925
notifications:
@@ -24,24 +30,18 @@ git:
2430
depth: 1
2531

2632
install:
27-
- echo mysql-apt-config mysql-apt-config/select-server select mysql-5.7 | sudo debconf-set-selections
28-
- wget http://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb
29-
- sudo dpkg --install mysql-apt-config_0.7.3-1_all.deb
30-
- sudo apt-get update -q
31-
- sudo apt-get install -q -y -o Dpkg::Options::=--force-confnew mysql-server
32-
- sudo mysql_upgrade
33-
- if [ "$deps" == "low" ]; then travis_retry composer update --prefer-source --prefer-lowest --prefer-stable --no-interaction; fi
34-
- if [ "$deps" != "low" ]; then travis_retry composer install --prefer-source --no-interaction; fi
33+
- if [ "$DEPS" == "low" ]; then travis_retry composer update --prefer-source --prefer-lowest --prefer-stable --no-interaction; fi
34+
- if [ "$DEPS" != "low" ]; then travis_retry composer install --prefer-source --no-interaction; fi
3535

3636
before_script:
3737
- mysql -u root -e 'create database telegrambot; use telegrambot; source ./vendor/longman/telegram-bot/structure.sql;'
3838

3939
script:
40-
- if [[ "$cov" == "1" ]] ; then composer test-cov; fi
41-
- if [[ "$cov" != "1" ]] ; then composer test; fi
40+
- if [[ "$COVERAGE" == "1" ]] ; then composer test-cov; fi
41+
- if [[ "$COVERAGE" != "1" ]] ; then composer test; fi
4242

4343
after_success:
44-
- if [[ "$cov" == "1" ]]; then bash <(curl -s https://codecov.io/bash); fi
44+
- if [[ "$COVERAGE" == "1" ]]; then bash <(curl -s https://codecov.io/bash); fi
4545

4646
env:
4747
global:

0 commit comments

Comments
 (0)