Skip to content

Commit

Permalink
Core: Getting travis to release versioned builds
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev committed Jul 21, 2017
1 parent 3eb56bd commit dc94c08
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/build/logs
/build/phar
/build/tmp
/build/out
/build/*.phar
/tests/statics/index.*
src/Michelf/*
Expand Down
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ before_script:
- export PATH=$PATH:$PWD
script: vendor/bin/phpunit --configuration tests/phpunit.xml
before_deploy:
- ant phar-nightly
- ant phar
deploy:
provider: releases
api_key:
secure: ix+vqDv/6NmNrk2r7ayF2dzyA2UBOuGlsQFE0z8dsLQdnVR3pJzjK2zkOE+aPtsj8cagdtRzPkDWoN+eBOfGxeQpxOoOlm63H5zMIvc21kckQR3AWUj0TNnXW0G7F1HpVFFjtzM5c4+wI38P2nmbed8uFCCQpLgLFXNHI2xsTfRDt5XUgvu18TrA/UwFdbQZgrWSW9Y3OL2IStbWFEvJo0YQG/EIMLmdU2oiFqySLuJSoJfqSzBVgeKoKbuzwt34gcIJezqCsF/wfhfpfTD/cGfrWzo7LwLbAf8qUBiy5vUehpDQXVtOMMq5qypLXCXJqjBvLEJsrP7uwFz4dB6CpQu/nuAc37i4ePYkmiRsBHMFAcRidAENop+5AABYg1zMI4gi8I3uvPUE5XHs8LAqVdH5bRWkU87rmt74O497nwWgpbw4odCkd/xDiYp0TsO7yumWjgryXDruCaIwk9imKR0XmFg0F7Zmr5Ju/btOnTWV57QFnIUzit2P8f8keExA17+Bw7lvLc9eW5NBXUVmwlNJuY5WWj4LpfcmLikFBCoGG0T0l1XRNiDqXOEOOMa+ykznLesG9RtLmTEpneK3bm87bcIqITn8oUE69FlrgD7hDsmptCZT7b0Mhp1uzekU1H9oURdxHuFxgHsS8r4jNBbRH7fNWqxx7GFAwf1CJpk=
file:
- build/phpdraft-nightly.phar
- build/phpdraft-library-nightly.phar
file_glob: true
file: build/out/*
skip_cleanup: true
on:
tags: true
Expand Down
6 changes: 4 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<delete dir="${basedir}/build/documentation"/>
<delete dir="${basedir}/build/logfiles"/>
<delete dir="${basedir}/build/phar"/>
<delete dir="${basedir}/build/out"/>
<delete>
<fileset dir="${basedir}/build">
<include name="**/phpdraft*.phar"/>
Expand Down Expand Up @@ -48,6 +49,7 @@

<target name="-phar-prepare" depends="clean">
<mkdir dir="${basedir}/build/phar"/>
<mkdir dir="${basedir}/build/out"/>
<copy file="${basedir}/LICENSE" tofile="${basedir}/build/phar/LICENSE"/>
<exec executable="${basedir}/build/phar-manifest.php" output="${basedir}/build/phar/manifest.txt"/>
</target>
Expand Down Expand Up @@ -98,7 +100,7 @@
<arg value="--hash"/>
<arg value="SHA-1"/>
<arg value="--output"/>
<arg path="${basedir}/build/phpdraft-library-${_version}.phar"/>
<arg path="${basedir}/build/out/phpdraft-library-${_version}.phar"/>
<arg value="--template"/>
<arg path="${basedir}/build/library-phar-autoload.php.in"/>
<arg path="${basedir}/build/phar"/>
Expand All @@ -112,7 +114,7 @@
<arg value="--hash"/>
<arg value="SHA-1"/>
<arg value="--output"/>
<arg path="${basedir}/build/phpdraft-${_version}.phar"/>
<arg path="${basedir}/build/out/phpdraft-${_version}.phar"/>
<arg value="--template"/>
<arg path="${basedir}/build/binary-phar-autoload.php.in"/>
<arg path="${basedir}/build/phar"/>
Expand Down

0 comments on commit dc94c08

Please sign in to comment.