forked from terrylinooo/shieldon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
34 lines (26 loc) · 687 Bytes
/
.travis.yml
File metadata and controls
34 lines (26 loc) · 687 Bytes
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
sudo: required
dist: trusty
language: php
branches:
only:
- master
php:
- 7.1
- 7.2
- 7.3
services:
- mysql
- redis
addons:
mariadb: '10.0'
before_script:
- composer self-update
- composer install --no-interaction --prefer-source --dev
# Create DB for testing.
- mysql -u root -e 'CREATE DATABASE shieldon_unittest;'
- mysql -u root -e "CREATE USER 'shieldon'@'localhost' IDENTIFIED BY 'taiwan';"
- mysql -u root -e "GRANT ALL ON shieldon_unittest.* TO 'shieldon'@'localhost';"
- echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
script: composer test
after_success:
- bash <(curl -s https://codecov.io/bash)