forked from rlacerda83/lumen-email-microservice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (24 loc) · 813 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
language: php
php:
- 5.5
- 5.6
sudo: false
# Create a Travis memcached enabled environment for the test suite to run in and
# ensure that we test against localhost on Travis-CI.
services: memcache
env: MEMCACHED__HOST=localhost
before_script:
- cp .env.example .env
- mysql -e 'create database emailservice;'
- composer self-update
- composer install --dev --prefer-source --no-interaction
- php artisan migrate:install --env=testing --no-interaction -vvv
- memcached -p 11212 -d
- echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
script:
- php artisan migrate --env=testing --no-interaction -vvv
- vendor/bin/phpunit
- php artisan migrate:rollback --env=testing --no-interaction -vvv
notifications:
on_success: never
on_failure: always