-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (45 loc) · 1.89 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
53
54
55
56
57
58
# Project language
language: php
# Allows use container-based infrastructure
sudo: false
# Start postgresql service
services:
- postgresql
before_script:
- psql -c 'create database api_test;' -U postgres
# Cache composer packages so "composer install" is faster
cache:
directories:
- $HOME/.composer/cache/files
# Matrix to test in every php version
matrix:
# Fast finish allows to set the build as "finished" even if the "allow_failures" matrix elements are not finished yet.
fast_finish: true
include:
- php: 5.5
- php: 5.6
- php: 7.0
# Define an environment variable
env:
- SYMFONY_VERSION="3.0.*"
# Update composer
before-install:
- composer self-update
# Install composer dependencies,
# Create database, schema and fixtures
install:
- composer install
- cp app/config/parameters.yml.dist app/config/parameters.yml
# - php bin/console doctrine:database:create --env=test
# - php bin/console doctrine:schema:create --env=test
# - php bin/console doctrine:fixtures:load -n --env=test
# Run script
script:
- ./vendor/bin/simple-phpunit
# After a build, send email notification with the build results
notifications:
email: james.labroy@gmail.com
deploy:
provider: heroku
api_key:
secure: nJ12alBAkCtotQIdF9n54oNTQQGyKy0JvLDmDAQUWcIIIVxgfUPh8Z8YJzJ7yxp5+KxSDiFPm8Y/V2kVHxNizygo3hF4bL+GdnKKxjJh/FSO2oaU8q1w8m1alNfFiedVt5CSxUW/43xiW7R6dDK/8/x+mVBDBeP9Ql4xIDw4WQroT3i2Z7emxDmenN81Yk/5seSY4DcRdyW934lOBv7LlnIfjDNQfdil0NFfKL8V/gQUzb19GCVUBfej/sq0XK4Ke+iQn+7dkIHrb9B9U29pQq5bUsBscpy/dkjRiZ6WVgwOWw23own2vzvOqHapRPkerJsVkpoXf7vfVpTdYDGhrOiXyRT2wwy3BGNuBgHRvpZBPk/dCed9WpEtdvzxl7q94P5StWfodGpiO7YhLNvS7D+3RyQvV0+3lL8pu5OnBwocqQIpVfksAY23GrZ6MBbXY10b7ih5lTq0CDVJx6tn1/QCanDc2zt00+kFO5wWH20Vwv25TjBq+Rnzzv5tZZOsUWV2jXgSfWy/aC5ARKdipujVFBNub3YlJaAgXfxGvJ0EZ8WpMRZMA/5joKIxptMUd0q8FhhZs+zX42PrKg9SjJaR4zfpSsJ2KHVQZbB/qj5goFlUL3HXa56mIMw9w0jsZutTIfLmuN4bOjwDGFuiXdMScI0nwBsZWv/9y1eMLUE=