Add ftp pass

This commit is contained in:
Francesco Macagno 2015-08-25 21:17:51 -07:00
parent eff9c77a53
commit ac20007fb8

View file

@ -5,12 +5,13 @@ jdk:
- oraclejdk8 - oraclejdk8
env: env:
global: global:
- "FTP_USER=warpdrive" - FTP_USER=warpdrive
- "FTP_PASSWORD=password" - FTP_PASSWORD=password
- secure: rnP6qHsQDukvZt1BeWLcK4DetcqzfmP2cRUYlNYk6lpGpgiIRP0RE4MbHJGgR0HNG93pIRcxjH7hHXKY1tbLZT7CBQBZmpAB7pTBPP1udmv7hV43vuoq5G8jYNO9lPqbFnREnM9/1b+REWfkedREenrPpbMdnIGukrYPxKJeh9UPRNrExIuBdVYCiGgleST3YrBtrWadRqRLB7I7YjhhcnxAtMG8SSea1r0tFBdD+XMeST7XBX3WPrMEfUDICpFJyReCAIKdDwJj2tgjHrWH7+h2jp6KljmRuS69Ody6ClhJ6Lsj3d+3yVAV2aqQDCxkBYqJA5bSq0rdOg8jn0qY9OD3rJtxzaZchfwXsEovs1KK2vJDEzti0zJOVm2W9ZB/KGawvD+bOnAsioOq3L4+HFJ9HfaU6gds0MvozdjydyWBWk+P1RiCdYLBOzKo4Z/LiD4KHvw9colQuJ+41mijWt7p3DQ2ijB/NrfbuBhGkRp3d1vcxLTKhTh3Q2eyqnhYgVlLyGmCVFqIsW18mXlnh5b/EptIpV9oLv3bz1MFjZtbl4p9mOaxK+nkvDV4yXgigmFAH5se/gmpKfj7wXacIdvyiQZmsBOK1sUpQAlf/kOueuJd0WXnVInZqnrjj2/JHCbb43zVb9iHd9NgHL1HkhPwdd+FDWk1LLPJMf+1PNk=
before_install: before_install:
- chmod +x gradlew - chmod +x gradlew
before_deploy: before_deploy:
- echo "deploying ${RELEASE_FILE} to GitHub releases" - echo "deploying ${RELEASE_FILE} to GitHub releases"
deploy: deploy:
provider: releases provider: releases
api_key: api_key:
@ -20,9 +21,9 @@ deploy:
on: on:
repo: LemADEC/WarpDrive repo: LemADEC/WarpDrive
branch: MC1.7 branch: MC1.7
tags: true tags: true
jdk: oraclejdk7 jdk: oraclejdk7
after_success: after_success:
- export RELEASE_FILE=$(ls build/libs/*.jar) - export RELEASE_FILE=$(ls build/libs/*.jar)
- echo "curl --ftp-create-dirs -T ${RELEASE_FILE} --user $FTP_USER:$FTP_PASSWORD ftp://khazaddum.caltech.edu/warpdrive/files/${RELEASE_FILE}.${TRAVIS_BUILD_NUMBER}-${TRAVIS_BRANCH}.jar" - echo "curl --ftp-create-dirs -T ${RELEASE_FILE} --user $FTP_USER:$FTP_PASSWORD ftp://khazaddum.caltech.edu/warpdrive/files/${RELEASE_FILE}.${TRAVIS_BUILD_NUMBER}-${TRAVIS_BRANCH}.jar"
- "curl --ftp-create-dirs -T ${RELEASE_FILE} --user $FTP_USER:$FTP_PASSWORD ftp://khazaddum.caltech.edu/warpdrive/files/${RELEASE_FILE}.${TRAVIS_BUILD_NUMBER}-${TRAVIS_BRANCH}.jar" - curl --ftp-create-dirs -T ${RELEASE_FILE} --user $FTP_USER:$FTP_PASSWORD ftp://khazaddum.caltech.edu/warpdrive/files/${RELEASE_FILE}.${TRAVIS_BUILD_NUMBER}-${TRAVIS_BRANCH}.jar