Skip to content

Commit

Permalink
Build and upload PEAR packages to GitHub on releases (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfens authored and jfritschi committed Dec 30, 2018
1 parent 5164da7 commit 52fc0f1
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
31 changes: 26 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,30 @@
language: php
php:
- "5.4"
- "5.5"
- "5.6"
- '5.4'
- '5.5'
- '5.6'
services:
- docker
script:
- cd test
- phpunit TestSuite.php
- cd test
- phpunit TestSuite.php
matrix:
fast_finish: true
include:
- stage: GitHub Release
php: '7.2'
script:
- docker run --rm -it -v $PWD:/app centos:centos7 /app/utils/build.sh
deploy:
provider: releases
file_glob: true
file: utils/dist/CAS-*.tgz
skip_cleanup: true
api_key:
secure: SetupEncryptionKeyUsingTravisCLITool
on:
repo: apereo/phpCAS
tags: true
sudo: false
notifications:
email: false
8 changes: 8 additions & 0 deletions utils/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

yum -y update && yum -y install ant doxygen php-pear

cd /app/utils \
&& pear upgrade --force --alldeps \
&& pear install --onlyreqdeps PEAR_PackageFileManager2-beta \
&& ant dist -Ddoxygen.path=/usr/bin/doxygen -Dphp.path=/usr/bin/php

0 comments on commit 52fc0f1

Please sign in to comment.