forked from snipe/snipe-it
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·52 lines (46 loc) · 1.93 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
addons:
hosts:
- localhost
sudo: false
# see http://about.travis-ci.org/docs/user/languages/php/ for more hints
language: php
# list any PHP version you want to test against
php:
- 5.4
- 5.5
- 5.6
# optionally specify a list of environments, for example to test different RDBMS
env:
- DB=mysql APP_ENV=travis-ci
# execute any number of scripts before the test run, custom env's are available as variables
before_script:
- hostname
- if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS snipeit_unit;" -utravis; fi
- curl -s http://getcomposer.org/installer | php
- cp app/config/travis-ci/app.example.php app/config/travis-ci/app.php
- cp app/config/travis-ci/database.example.php app/config/travis-ci/database.php
- cp app/config/travis-ci/mail.example.php app/config/travis-ci/mail.php
- composer self-update
- composer install --prefer-source --no-interaction
- php artisan key:generate
- php artisan migrate:install --no-interaction -vvv
- php artisan migrate --package cartalyst/sentry --no-interaction -vvv
- php artisan migrate --no-interaction -vvv
- php artisan db:seed --no-interaction -vvv
- ./vendor/bin/codecept build
- APP_ENV=travis-ci php artisan serve --port=8007 &
- sleep 5
# omitting "script:" will default to phpunit
# use the $DB env variable to determine the phpunit.xml to use
script: ./vendor/bin/codecept run --env travis-ci -vvv
# configure notifications (email, IRC, campfire etc)
notifications:
email: false
slack:
secure: vv9we1RxB9RsrMbomSdq6D7vz/okobw87pEkgIZjB+hj1QpQ2by90gsPsOa+NgsJEFaEP7e4KlT6SH8kK+zhbmuKaUd3d1//XdcancE22LZXi6tkiB5yuR/Jhhb1LLDqyGJTB4D92hMnnCPiUjpxNA3r437ttNeYRdYIEEP3drA=
webhooks:
urls:
- https://webhooks.gitter.im/e/5e136eb0c1965f3918d0
on_success: change # options: [always|never|change] default: always
on_failure: change # options: [always|never|change] default: always
on_start: false # default: false