forked from humhub/custom-pages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (43 loc) · 1.08 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
language: php
sudo: enabled
services:
- mysql
addons:
chrome: stable
git:
depth: 3
php:
- '5.6'
- '7.0'
- '7.1'
- '7.2'
#- '7.3'
env:
global:
- HUMHUB_PATH=/opt/humhub
matrix:
- HUMHUB_VERSION=master
- HUMHUB_VERSION=v1.3.0
- HUMHUB_VERSION=develop
matrix:
allow_failures:
- env: HUMHUB_VERSION=develop
fast_finish: true
cache:
directories:
- $HOME/.composer/cache
install:
- .travis/install-dependencies.sh
- .travis/setup-humhub.sh
before_script:
- $HOME/chromedriver --url-base=/wd/hub &
- export USE_ZEND_ALLOC=0
- php --server 127.0.0.1:8080 --docroot ${HUMHUB_PATH} &>/dev/null &
- sleep 5
- curl --fail --head http://127.0.0.1:8080/index-test.php
script:
- cd tests
- ln -s ${HUMHUB_PATH}/protected/humhub/tests/config/env config/ # create symlink from /opt/humhub to config/
- sed -i -e "s|../../../humhub/tests/config/env|config/env|g" codeception.yml # fix relative path for codeception
- php ${HUMHUB_PATH}/protected/vendor/bin/codecept build
- php ${HUMHUB_PATH}/protected/vendor/bin/codecept run --env travis