-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (24 loc) · 943 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
sudo: false
language: php
php:
- 7
env:
matrix:
- TEST_ENV=quality
global:
- CI_HOME=`pwd`/../..
services:
- redis-server
before_install:
- cd $CI_HOME && git clone --depth=50 --branch=master git@github.com:kayako/travis-k5.git kayako/travis
- export GITHUBTOKEN=`openssl rsautl -decrypt -inkey ~/.ssh/id_rsa -in $CI_HOME/kayako/travis/.travis/github_token_secret`
- mysql -e 'create database novo;'
- echo "opcache.enable=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "opcache.enable_cli=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "opcache.dups_fix=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "opcache.inherited_hack=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- mysql -e "SET GLOBAL wait_timeout=28800;"
install:
- $CI_HOME/kayako/travis/install_dependencies.sh
script:
- cd $CI_HOME/kayako/travis && php init.php