-
Notifications
You must be signed in to change notification settings - Fork 99
/
Copy path.travis.yml
56 lines (50 loc) · 1.82 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
language: php
cache:
directories:
- $HOME/.composer/cache/files
before_install:
- if [[ "$TRAVIS_PHP_VERSION" < "7.0" ]]; then pecl install pthreads-2.0.10; fi
- if [[ "$TRAVIS_PHP_VERSION" = "7.0" ]] || [[ "$TRAVIS_PHP_VERSION" > "7.0" ]]; then pecl install pthreads-3.1.6; fi
- phpenv rehash
- wget https://scrutinizer-ci.com/ocular.phar
env:
global:
- BUILD_NUMBER=${TRAVIS_BUILD_NUMBER}
matrix:
include:
- os: linux
dist: xenial
php: 5.6
env:
- OS_FAMILY = linux
- OS_DISTRO = debian
services:
- docker
script:
- mkdir -p build
- composer install
- vendor/bin/robo build
- if [[ "$TRAVIS_TAG" ]]; then docker run --rm -v `pwd`:/build -w /build debian:9 bash -c "apt-get update && apt-get install -y ant git php && ant dependencies-init -f vendor/appserver-io-dist/debian/build.xml && ant local-build -Dbuild.number=$BUILD_NUMBER -Dtarget-os.major.version=9 -Dtarget-os.minor.version=9 -f vendor/appserver-io-dist/debian/build.xml && chmod -R 777 vendor/appserver-io-dist/debian/build"; fi
- if [[ "$TRAVIS_TAG" ]]; then mv vendor/appserver-io-dist/debian/build/* build/; fi
- if [[ "$TRAVIS_TAG" ]]; then echo "Prepared the following artefacts:"; ls -lh build/; fi
- os: linux
dist: xenial
language: php
php: 7.0
allow_failures:
- php: 7.0
- os: osx
deploy:
provider: releases
api_key:
secure: "fDjFJMc3Rt312Da6LpBgH4SK7JhCppgRJZYiqHu1zkjLlCUi10rougJuA3BL+c531Udb0Ko1bjGrcRZVHmg1Grtn8lDwKAfSGC8x7Dc1gC788gA9hAHVIJ95WVgUOfALWFQ1e3re9cUhlCrRz0Pc6ZxgOaI9Krg9TwaisuXu/Lg="
file_glob: true
file: "build/*"
skip_cleanup: true
on:
tags: true
branch: '1.1'
repo: appserver-io/appserver
notifications:
email: [email protected]
webhooks: https://app.fossa.io/hooks/travisci