-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (33 loc) · 1.46 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
sudo: false
language: php
php:
- 5.5
- 5.6
- hhvm
env:
global:
- secure: "Uft74EqqtZ2NOYECsx8bq8RaN8L40S12X9rFqsVLrbV2E8ru8ijL4mZNcRYYSSG5L6jR27wvlalTbzxBRWT1LnAt15AreCmuq/m9tj3yyXMNkX6dASVpw/qxTlgeAwGP26iFe4zgKubmyQXZroK8iIN4/HimRwYaADSeQ4j8QyQ="
- secure: "UmFds85SDbGAGgayw75iXegyElb68BVjT+rwwaUDtokreSgUytnj6+puFcomYtE5SiHmhZbcDZs2f4jBh0GlmDCULBIsj2i3B+qUdt0S3k6yNUhqEM6FoEmrFeiD0hK3PUW267LJEhZjgQfjkAhRGoF6RpLQFrvZFi9ldbS207c="
- SAUCE_CONNECT_READY_FILE=/tmp/sauce-connect-ready
- LOGS_DIR=/tmp/sulu/logs
- DB=mysql
before_script:
- mkdir -p $LOGS_DIR
- if [[ "$DB" == "mysql" ]]; then mysql -e "CREATE DATABASE sulu;"; fi
- if [[ "$DB" == "pgsql" ]]; then psql -c "CREATE DATABASE sulu;" -U postgres; fi
- cp app/Resources/pages/default.xml.dist app/Resources/pages/default.xml
- cp app/Resources/pages/overview.xml.dist app/Resources/pages/overview.xml
- cp app/Resources/snippets/default.xml.dist app/Resources/snippets/default.xml
- cp app/Resources/webspaces/sulu.io.xml.dist app/Resources/webspaces/sulu.io.xml
- ./tests/sauce/connect_setup.sh
- composer self-update
- composer update --prefer-dist --no-interaction
- php app/console sulu:build dev --no-interaction
- php app/console server:run 0.0.0.0:8000 --router=app/config/router_admin.php --env prod > /dev/null 2>&1 &
- ./tests/sauce/connect_block.sh
script: bin/paratest -p 2 -f
matrix:
allow_failures:
- php: hhvm
after_script:
- ./tests/travis_print_logs.sh