-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (42 loc) · 1.14 KB
/
.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
44
45
46
47
48
49
50
51
52
53
54
55
language: php
php:
- '7.1'
- nightly
services:
- postgresql
- elasticsearch
sudo: required
cache:
directories:
- $HOME/bin/
- $HOME/.composer/cache/files
- $HOME/.npm/
- node_modules
env:
global:
- PATH="$HOME/.local/bin:$PATH"
- SCRIPTS_FOLDER=bin/ci-scripts
- SYMFONY_DEPRECATIONS_HELPER=weak
- TARGET=test
- WHORUN=travis
matrix:
fast_finish: true
allow_failures:
- php: nightly
- env: SYMFONY_DEPRECATIONS_HELPER=0
before_install:
- ln -s .env.travis .env # Enable env
- ${SCRIPTS_FOLDER}/do_run.sh before_install_travis_${TARGET}.sh
- ${SCRIPTS_FOLDER}/do_run.sh before_install_${TARGET}.sh
- ${SCRIPTS_FOLDER}/do_run.sh create_database_${TARGET}.sh
- ${SCRIPTS_FOLDER}/do_run.sh create_table_${TARGET}.sh
install:
- ${SCRIPTS_FOLDER}/do_run.sh install_${TARGET}.sh
before_script:
- ${SCRIPTS_FOLDER}/do_run.sh before_script_${TARGET}.sh
script:
- travis_wait 42 ${SCRIPTS_FOLDER}/do_run.sh run_${TARGET}.sh
after_success:
- ${SCRIPTS_FOLDER}/do_run.sh after_success_${TARGET}.sh
after_failure:
- ${SCRIPTS_FOLDER}/do_run.sh after_failure_${TARGET}.sh