Skip to content

Commit

Permalink
Set up release deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
mcartoixa committed Jan 2, 2018
1 parent 97af8d9 commit 67786a1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
16 changes: 13 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
language: php
php:
- '5.6'
- '5.6'

env:
- DLM_PACKAGE_VERSION=1.0.$TRAVIS_BUILD_NUMBER

install:
- php bin/composer.phar install -q -n
- php bin/composer.phar install -n

script:
- vendor/bin/phing -f build.xml prepare.version release
- vendor/bin/phing -f build.xml prepare.version release

deploy:
provider: releases
api_key:
secure: "Q4UNbY2lQlvEWgGxJE8w3k7WWePXyJMuFVuIbgSYmdmFGrqxl9L+Aj6zCqTOcpCKa4xzL1e1gTvJ/hN5ljx9bqIKYj9hb9gDQjRIjwshTLL8C738u7t1Jsrjuo1OqYRWInmTxviewqGIPvraNCu2kwBTnLYzsVAsGZRi6oi1pVC/EvSnsB5WdF1+b/1pNXaeiCxpF2/WbWD1eqeZ4mDIDwtKrwVVDZIypOrNckQEyDqFSN5rAiEJD/Ll3j2qpOcxLvMsgj+mZUJsY/eAXQSNbVt9eQqA/96bPu29iwvK9g5IO1OWymaTwDEqH0jDdSOMtv4UnqgiCW37wYlmTH6vqV4akshpHK7D4Vxdl5mPHE1Pte7vXb6ozbrtq9kuQaDKg02/SW4p1IRC7RF6N/7qfYzm38CoY7SKvEOj7iS86VYBTrRu/smiZFgjstSWkbDBlLva7IWMmlW5/fqgCyOLHt5QYRL6cq6JUKso5fknPBr6jPglic7UrZZMYs8vky+r8+xpaj5Ej/ZEGRCFxuG3y2b3yRTeJFGjKoohUSYPFb//yj88JYp1uAP9zYKpJoa4rHVSi059Rm8/JgpD+I+D/fFeIwBnXN0gWP975PzivOngy96gnScj3TGfpZbKe8tA8pggK2X6qLh63B0rlbGhvGMHyknmS5PM2kISMU0OVdM="
file_glob: true
file: tmp/out/bin/*
skip_cleanup: true
on:
tags: true
4 changes: 2 additions & 2 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
::
:: /clean - Cleans the project
:: /rebuild - Cleans and builds the project (default)
:: /release - Rebuilds the project and performs additional operations
:: /release - Rebuilds the project and creates the packages
::
:: /NoPause - Does not pause after completion
:: /? - Gets the usage for this script
Expand Down Expand Up @@ -92,7 +92,7 @@ ECHO Usage: "build [/clean | /rebuild | /release] [/NoPause] [/?]"
ECHO.
ECHO /clean - Cleans the project
ECHO /rebuild - Cleans and builds the project (default)
ECHO /release - Rebuilds the project and performs additional operations
ECHO /release - Rebuilds the project and creates the packages
ECHO.
ECHO /NoPause - Does not pause after completion
ECHO /? - Gets the usage for this script
Expand Down
2 changes: 1 addition & 1 deletion dlm/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@


<target name="package" depends="package.prepare,build">
<tar destfile="${build.out.dir}/mcartoixa_thepiratebay.dlm" compression="gzip">
<tar destfile="${build.out.dir}/${phing.project.name}" compression="gzip">
<fileset dir="${build.bin.dir}">
<include name="**/**" />
<exclude name="composer.*"/>
Expand Down

0 comments on commit 67786a1

Please sign in to comment.