Create release tarball using travis
This commit is contained in:
parent
6ad3fd87cc
commit
74428511c2
16
.travis.yml
16
.travis.yml
|
@ -71,7 +71,7 @@ script:
|
||||||
- ./travis/php.sh
|
- ./travis/php.sh
|
||||||
- ./travis/python.sh
|
- ./travis/python.sh
|
||||||
deploy:
|
deploy:
|
||||||
provider: pages
|
- provider: pages
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
local_dir: build/docs
|
local_dir: build/docs
|
||||||
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
|
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
|
||||||
|
@ -83,3 +83,17 @@ deploy:
|
||||||
on:
|
on:
|
||||||
branch: master
|
branch: master
|
||||||
condition: $PYTHON = true
|
condition: $PYTHON = true
|
||||||
|
- provider: script
|
||||||
|
skip_cleanup: true
|
||||||
|
script: travis/release.sh
|
||||||
|
on:
|
||||||
|
tags: true
|
||||||
|
condition: $PYTHON = true
|
||||||
|
- provider: releases
|
||||||
|
skip_cleanup: true
|
||||||
|
api_key: $GITHUB_TOKEN
|
||||||
|
file_glob: true
|
||||||
|
file: build/libretime-*.tar.gz
|
||||||
|
on:
|
||||||
|
tags: true
|
||||||
|
condition: $PYTHON = true
|
||||||
|
|
|
@ -26,12 +26,10 @@ fi
|
||||||
dir=$(dirname $(readlink -f $0))
|
dir=$(dirname $(readlink -f $0))
|
||||||
gitrepo=$(readlink -f ./../../)
|
gitrepo=$(readlink -f ./../../)
|
||||||
|
|
||||||
echo ${gitrepo}
|
|
||||||
|
|
||||||
echo "Creating tarball for LibreTime ${suffix}."
|
echo "Creating tarball for LibreTime ${suffix}."
|
||||||
|
|
||||||
target=/tmp/libretime-${suffix}
|
target=/tmp/libretime-${suffix}
|
||||||
target_file=/tmp/libretime-${suffix}.tar.gz
|
target_file=${gitrepo}/build/libretime-${suffix}.tar.gz
|
||||||
|
|
||||||
rm -rf $target
|
rm -rf $target
|
||||||
rm -f $target_file
|
rm -f $target_file
|
||||||
|
@ -51,7 +49,7 @@ git checkout --quiet tags/${suffix}
|
||||||
echo " Done"
|
echo " Done"
|
||||||
|
|
||||||
echo -n "Running composer install..."
|
echo -n "Running composer install..."
|
||||||
composer install --quiet --no-dev
|
composer install --quiet --no-dev --ignore-platform-reqs
|
||||||
echo " Done"
|
echo " Done"
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -xe
|
||||||
|
|
||||||
|
pushd dev_tools/release
|
||||||
|
bash -e release.sh ${TRAVIS_TAG}
|
||||||
|
popd
|
Loading…
Reference in New Issue