forked from wodby/drupal-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (32 loc) · 1.48 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
language: bash
services:
- docker
env:
global:
- LATEST_TAG=7.1
matrix:
- TAG=7.1 PHP_VER=7.1
- TAG=7.0 PHP_VER=7.0
- TAG=5.6 PHP_VER=5.6
- TAG=5.3 PHP_VER=5.3
- TAG=7.1-dev PHP_VER=7.1 PHP_DEV=1
- TAG=7.0-dev PHP_VER=7.0 PHP_DEV=1
- TAG=5.6-dev PHP_VER=5.6 PHP_DEV=1
script:
- cd "${PHP_VER}" || cd "${PHP_VER:0:1}"
- make && make test
after_success: |
if [[ "${TRAVIS_PULL_REQUEST}" == "false" && ("${TRAVIS_BRANCH}" == "master" || -n "${TRAVIS_TAG}") ]]; then
docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}"
if [[ -n "${TRAVIS_TAG}" ]]; then
export STABILITY_TAG="${TRAVIS_TAG}"
fi
make release
if [[ "${TAG}" == "${LATEST_TAG}" ]]; then
make release TAG="latest"
fi
fi
notifications:
on_failure: never
slack:
secure: "HJ2TKUdsV+6Tgtf6wfiDj8wnPHU5a62Q98wyBDouV8L7hOw3b/QJclRsy7Xjdqa2AQlqfONaqxsbDdAIUM+yV51CLoS9ExWTuzzHbUplEE9aw+aUSu73ALf3IHDCPBk9HF5MZZ8lHua3P5V8/yUtfyfL3Iy8UHCyKjinzti7KMy+KyVeaG3hv99G74eQ0eiO8KwQNGt/lDannC6viu8O4oHdTSkM+wKWvnDkD90RoB2n3feABrQ1hG//Lk6gwg79DT5/IDpO9RfzVo3Nxmw010ZFrOugJqeWAsV8912nHGd8NyXIWW+wa5maasxQnGxCbOEfIJM5aoQ52iHgjnwtSDMjOxRCDhBzvXvFGNRrnVw07hfo10FkRi7/NsmR2IDG+xoFJjG90OtfjHnv8cn3aZEROkFpwjbUi2pyh0+OW7k8nOLKBZTVaZ9T795Lw3fG6kNFKTHByMAKqeduCHTsZI/+gHV+uuOyJ0w1uFG3tYU/RidYlOGOYQm285pF16F/lGHlLCnytyGCd5+Q1iFpZ5ZRTZnZ6ZRqu03msUemJfhR/CSGw6G0yFX3g2GuCyHLhGQotmEi0X8mnpzuvSAy/9cLAzIJDe2+FNC4QMJ3//OWkzb4PUAC8EBQ/3ct2ttpKbifBPhTAKMah59gA6J8uCMG2DebkagXBldVUEdIoso="