forked from baserproject/basercms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (31 loc) · 1.06 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
language: php
php:
- 5.2
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
- 7.0
sudo: false
cache:
directories:
- vendors
- $HOME/.composer/cache
matrix:
allow_failures:
- php: hhvm
- php: 7.0
before_script:
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpenv config-add travis.php.ini; fi;'
- mysql -u root -e "CREATE DATABASE basercms CHARACTER SET utf8;"
- mysql -u root -e "GRANT ALL PRIVILEGES ON basercms.* TO basercms@localhost IDENTIFIED BY 'basercms'"
- mysql -u basercms --password="basercms" -e "SHOW DATABASES;"
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "5.2" ]; then composer install --dev; fi;'
- cd app
- php ./Console/cake.php bc_manager checkenv
- php ./Console/cake.php bc_manager install "http://localhost" "mysql" "admin" "basercms" "[email protected]" --host "localhost" --database "basercms" --login "basercms" --password "basercms" --prefix "mysite_" --port "3306" --smarturl "true" --data "nada-icons.default"
script:
- php ./Console/cake.php baser_test baser BcAll
notifications:
email: false