forked from humhub/tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (36 loc) · 778 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
language: php
sudo: enabled
services:
- mysql
addons:
chrome: stable
git:
depth: 3
php:
- '7.0'
- '7.1'
- '7.2'
env:
global:
- HUMHUB_PATH=/opt/humhub
matrix:
- HUMHUB_VERSION=master
- HUMHUB_VERSION=develop
- HUMHUB_VERSION=v1.3.8
matrix:
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 &
- 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
- php ${HUMHUB_PATH}/protected/vendor/bin/codecept build
- php ${HUMHUB_PATH}/protected/vendor/bin/codecept run --env travis