-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
43 lines (34 loc) · 1000 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
language: php
#dist: trusty
#sudo: required
cache:
directories:
- $HOME/.composer/cache/files
php:
- 7.1
- 7.2
- 7.3
services:
- mysql
#addons:
# mariadb: '10.3'
#env:
# - DB=mysql
# - DB=mariadb
install:
- composer install -n
# - sh -c "sudo service mysql stop"
# - sh -c "if [ '$DB' = 'mysql' ]; then sudo apt-get remove mariadb-common mariadb-server; fi"
# - sh -c "if [ '$DB' = 'mariadb' ]; then sudo apt-get remove mysql-common mysql-server; fi"
# - sh -c "if [ '$DB' = 'mariadb' ]; then sudo apt-get install mariadb-common mariadb-server; fi"
# - sh -c "sudo service mysql restart"
#before_script:
# - cat ~travis/.my.cnf
# - sudo chmod +x ./gen-ssl.sh && sudo ./gen-ssl.sh
# - sudo touch /var/run/mysqld/mysql_secure.sock
# - sudo cp /var/lib/mysql /var/lib/mysql_secure
# - sudo mysqld --defaults-file=./.travis/my.cnf
script:
- sudo sh ./setup_db.sh
- ./vendor/bin/phpunit tests --exclude-group tls
- mysql -e 'DROP DATABASE IF EXISTS plasma_tmp'