mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
Travis now automatically pushes a build to a server.
This commit is contained in:
parent
6ea9b4b94a
commit
631cf776f6
3 changed files with 39 additions and 1 deletions
BIN
.DS_Store
vendored
BIN
.DS_Store
vendored
Binary file not shown.
|
@ -7,3 +7,5 @@ script: # the following commands are just examples, use whatever your build p
|
||||||
install:
|
install:
|
||||||
- sudo apt-get install nodejs
|
- sudo apt-get install nodejs
|
||||||
- sudo apt-get install npm
|
- sudo apt-get install npm
|
||||||
|
after_success:
|
||||||
|
- ./package.sh
|
||||||
|
|
38
package.sh
38
package.sh
|
@ -1,4 +1,18 @@
|
||||||
VERSION=$1
|
if [ $# -eq 0 ]; then
|
||||||
|
if [ "$TRAVIS_PULL_REQUEST" != false ]; then
|
||||||
|
echo "Need to supply version argument" && exit;
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
|
||||||
|
#VERSION="`date +%H:%M:%S`"
|
||||||
|
VERSION="15-11-15"
|
||||||
|
YEAR="`date +%Y`"
|
||||||
|
MONTH="`date +%m`"
|
||||||
|
DAY="`date +%d`"
|
||||||
|
else
|
||||||
|
VERSION=$1
|
||||||
|
fi
|
||||||
outputFolder='./_output'
|
outputFolder='./_output'
|
||||||
outputFolderMono='./_output_mono'
|
outputFolderMono='./_output_mono'
|
||||||
outputFolderOsx='./_output_osx'
|
outputFolderOsx='./_output_osx'
|
||||||
|
@ -7,3 +21,25 @@ outputFolderOsxApp='./_output_osx_app'
|
||||||
cp -r $outputFolder Radarr_Windows_$VERSION
|
cp -r $outputFolder Radarr_Windows_$VERSION
|
||||||
cp -r $outputFolderMono Radarr_Mono_$VERSION
|
cp -r $outputFolderMono Radarr_Mono_$VERSION
|
||||||
cp -r $outputFolderOsxApp Radarr_OSX_$VERSION
|
cp -r $outputFolderOsxApp Radarr_OSX_$VERSION
|
||||||
|
|
||||||
|
zip -r Radarr_Windows_$VERSION.zip Radarr_Windows_$VERSION >& /dev/null
|
||||||
|
zip -r Radarr_Mono_$VERSION.zip Radarr_Mono_$VERSION >& /dev/null
|
||||||
|
zip -r Radarr_OSX_$VERSION.zip Radarr_OSX_$VERSION >& /dev/null
|
||||||
|
|
||||||
|
ftp -n ftp.leonardogalli.ch << END_SCRIPT
|
||||||
|
quote USER $FTP_USER
|
||||||
|
quote PASS $FTP_PASS
|
||||||
|
mkdir builds
|
||||||
|
cd builds
|
||||||
|
mkdir $YEAR
|
||||||
|
cd $YEAR
|
||||||
|
mkdir $MONTH
|
||||||
|
cd $MONTH
|
||||||
|
mkdir $DAY
|
||||||
|
cd $DAY
|
||||||
|
binary
|
||||||
|
put Radarr_Windows_$VERSION.zip
|
||||||
|
put Radarr_Mono_$VERSION.zip
|
||||||
|
put Radarr_OSX_$VERSION.zip
|
||||||
|
quit
|
||||||
|
END_SCRIPT
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue