forked from ushahidi/platform
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
54 lines (54 loc) · 1.53 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
sudo: false
notifications:
hipchat:
rooms:
secure: fb2eYR4DVBestPl/DSG7lnUWT46Rmr9BfRsZFe4dhrS3ZetkZ1XZueF6SCtB4yukaJoDlA7y98FgQ7eGx6OGToc4ALnPpwd3BdfJ5RV/PK/6LG7u5Mp4+DfB4lG1q9IjuHF7dhBPSk2sRd8ewtwV5JR4SHKYfHxSR9Ekwmn1Xyo=
template:
- '<a href="%{build_url}">%{repository}#%{build_number}</a> (%{branch} - <a href="%{compare_url}">%{commit}</a>
: %{author}): %{message}'
format: html
notify: true
slack:
secure: NxhzhKGYnZYZiWVZM4w1PlZpTy9bbmNlvbqjL+9d4PvK4hFzPwQU12CchhBPeXNGLWBHg/ti6Scn/t5XIS3YJrkk4ydWmJBht5UId8uFZ1A7GCUnNNPTt2RG55lbJJdZSj01rOGZjEQbE5RyckEjgRzhZjdZ+HsjoPaRzWIBrvE=
language: php
php:
- '5.5'
- '5.6'
env:
- coverage="--coverage"
- coverage=""
matrix:
exclude:
- php: '5.5'
env: coverage="--coverage"
allow_failures:
- env: coverage="--coverage"
fast_finish: true
cache:
directories:
- "$HOME/.composer/cache"
services:
- mysql
install:
- composer install --no-interaction
before_script:
- "./bin/tests install"
script:
- "./bin/tests run --no-install $coverage"
- composer lint
after_success:
- if [ "${coverage}" != "" ]; then travis_retry bin/coveralls -v; fi
before_deploy:
- bin/release ${TRAVIS_TAG:-$TRAVIS_COMMIT}
deploy:
- provider: releases
api_key:
secure: C9dRB0X6/QWeKMIdDnuItGzzcJITf5oeGSd/Ry85//DawkC1nZn7yhjOFJuzOT1W8+lrmYgOtqVWaZdKuw36CEa4iooXCwDqn+6SWL1N/Q0JkJZH/pXkjSjtkfRV9iNlSRw3DF1yAcout1piqbD4BKDcAtrIf5apGQnXGzKjn/Q=
file: build/*
file_glob: true
skip_cleanup: true
on:
repo: ushahidi/platform
php: 5.5
tags: true
all_branches: true