This repository has been archived by the owner on Feb 21, 2020. It is now read-only.
forked from pimcore/pimcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
86 lines (75 loc) · 1.73 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
notifications:
email:
sudo: false
language: php
php:
- 7
- 7.1
- 7.2
services:
- redis
addons:
mariadb: '10.1'
hosts:
- pimcore-test.dev
matrix:
include:
- os: linux
sudo: required
php: 7
env:
- PIMCORE_TEST_SUITE=rest
- PIMCORE_TEST_ENV=http
- os: linux
sudo: required
php: 7.1
env:
- PIMCORE_TEST_SUITE=rest
- PIMCORE_TEST_ENV=http
- os: linux
sudo: required
php: 7.2
env:
- PIMCORE_TEST_SUITE=rest
- PIMCORE_TEST_ENV=http
- os: linux
php: 7.1
env:
- PIMCORE_TEST_SUITE=cache
- PIMCORE_TEST_GROUP=cache.core.redis
- PIMCORE_TEST_SETUP_SKIP_PHP_REDIS_EXTENSION=true
- os: linux
php: 7.1
services: ~
addons: ~
env:
- TASK_TESTS=0
- TASK_DOCS=1
cache:
directories:
- tmp-docs/pimcore-docs/vendor
cache:
directories:
- vendor
env:
global:
- TASK_TESTS=1
- TASK_DOCS=0
- PIMCORE_ENVIRONMENT=test
- PIMCORE_TEST=1
- PIMCORE_TEST_URL=http://pimcore-test.dev
- PIMCORE_TEST_DB_DSN="mysql://root@localhost/pimcore_test"
- PIMCORE_TEST_CACHE_REDIS_DATABASE=1
before_install:
- mysql --version
- mysql -e "CREATE DATABASE pimcore_test CHARSET=utf8mb4;"
install:
- if [ $TASK_TESTS == 1 ]; then .travis/setup-tests.sh; fi
- if [ $TASK_DOCS == 1 ]; then .ci/setup-docs.sh; fi
before_script:
- if [ $TASK_TESTS == 1 ]; then .travis/setup-php.sh; fi
- if [ $TASK_TESTS == 1 ]; then .travis/setup-functional-tests.sh; fi
script:
- if [ $TASK_TESTS == 1 ]; then .travis/run-tests.sh; fi
- if [ $TASK_DOCS == 1 ]; then .ci/run-docs.sh; fi