forked from jarves/jarves
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (23 loc) · 1.09 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
language: php
php:
- 5.6
- 7.0
env:
- DB_TYPE=mysql DB_USER=root DB_NAME=test
- DB_TYPE=pgsql DB_USER=postgres DB_NAME=test
- DB_TYPE=sqlite DB_NAME=test DB_SERVER=test.sq3
before_script:
- gem install sass
- composer install --prefer-dist
# DB
- sh -c "if [ '$DB_TYPE' = 'mysql' ]; then mysql -e 'DROP DATABASE IF EXISTS test; CREATE DATABASE test;'; fi"
- sh -c "if [ '$DB_TYPE' = 'pgsql' ]; then psql -c 'CREATE DATABASE test;' -U postgres; fi"
- sh -c "if [ '$DB_TYPE' = 'sqlite' ]; then touch test.sq3; chmod 777 test.sq3; fi"
- sudo chown -R www-data .
- Tests/Integration/skeletion/app/console jarves:configuration:database $DB_TYPE $DB_NAME $DB_USER --server=$DB_SERVER
- rm -rf Tests/Integration/skeletion/app/cache/*
- Tests/Integration/skeletion/app/console propel:model:build
- Tests/Integration/skeletion/app/console propel:migration:diff
- Tests/Integration/skeletion/app/console propel:migration:up
- Tests/Integration/skeletion/app/console jarves:install:demo localhost /
- Tests/Integration/skeletion/app/console assets:install Tests/Integration/skeletion/web