diff --git a/.travis.yml b/.travis.yml index a0873d6fc..5452eede6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,8 +23,7 @@ script: after_success: - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./gradlew jacocoTestReport coveralls; fi - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then scripts/upload_deb.sh $BINTRAY_KEY ; fi - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then scripts/upload_rpm.sh $BINTRAY_KEY ; fi - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then scripts/upload_jar.sh $BINTRAY_KEY ; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then scripts/upload_deb.sh $BINTRAY_KEY $PASSGPG ; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then scripts/upload_rpm.sh $BINTRAY_KEY $PASSGPG ; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then scripts/upload_jar.sh $BINTRAY_KEY $PASSGPG ; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then scripts/upload_dmg.sh $BINTRAY_KEY ; fi - diff --git a/README.md b/README.md index e15c6789b..2d42e6b4e 100644 --- a/README.md +++ b/README.md @@ -32,9 +32,12 @@ Les instructions se trouvent sur [ce post](https://zestedesavoir.com/forums/suje #### Ubuntu, Debian, etc. -1. Ouvrez un terminal et lancez la commande : `echo "deb https://dl.bintray.com/firm1/deb wheezy main" | sudo tee -a /etc/apt/sources.list.d/zestwriter.list`. -2. mettez à jour vos dépôts via la commande : `sudo apt-get update`. -3. installez Zest Writer via la commande : `sudo apt-get install zestwriter`. +*Pour une mise à jour passez directement à l'étape 3*. + +1. Importez la clé GPG bintray de via la commande : `sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61` +2. Ajouter une nouvelle source via la commande : `echo "deb https://dl.bintray.com/firm1/deb wheezy main" | sudo tee -a /etc/apt/sources.list.d/zestwriter.list`. +3. mettez à jour vos dépôts via la commande : `sudo apt-get update`. +4. installez Zest Writer via la commande : `sudo apt-get install zestwriter`. #### Fedora, ArchLinux, CentOs, etc. diff --git a/scripts/upload_deb.sh b/scripts/upload_deb.sh index 77d330dbe..03a95dbb9 100755 --- a/scripts/upload_deb.sh +++ b/scripts/upload_deb.sh @@ -13,3 +13,7 @@ VERSION=`cat gradle.properties | grep "version" | cut -d "=" -f2` echo "Upload du fichier $DEBFILE ..." curl -T "$DEBFILE" -u "firm1:$APIKEY" "https://api.bintray.com/content/firm1/deb/zest-writer/$VERSION/$DEBFILE;deb_distribution=wheezy;deb_component=main;deb_architecture=i386,amd64" + +echo "Sign" + +curl -u "firm1:$APIKEY" -X POST "https://api.bintray.com/calc_metadata/firm1/deb" diff --git a/scripts/upload_jar.sh b/scripts/upload_jar.sh index 9a9a0b1ba..71ebc296c 100755 --- a/scripts/upload_jar.sh +++ b/scripts/upload_jar.sh @@ -13,3 +13,7 @@ VERSION=`cat gradle.properties | grep "version" | cut -d "=" -f2` echo "Upload du fichier $DEBFILE ..." curl -T "$DEBFILE" -u "firm1:$APIKEY" "https://api.bintray.com/content/firm1/maven/zest-writer/$VERSION/$DEBFILE" + +echo "Sign" + +curl -u "firm1:$APIKEY" -X POST "https://api.bintray.com/calc_metadata/firm1/maven/build/libs" diff --git a/scripts/upload_rpm.sh b/scripts/upload_rpm.sh index 33664de4c..ca25bb99b 100755 --- a/scripts/upload_rpm.sh +++ b/scripts/upload_rpm.sh @@ -6,7 +6,6 @@ if [ -z "$1" ] exit 1 fi - RPMFILE=`ls build/distributions/*.rpm` APIKEY=$1 VERSION=`cat gradle.properties | grep "version" | cut -d "=" -f2` @@ -14,3 +13,7 @@ VERSION=`cat gradle.properties | grep "version" | cut -d "=" -f2` echo "Upload du fichier $DEBFILE ..." curl -T "$RPMFILE" -u "firm1:$APIKEY" "https://api.bintray.com/content/firm1/rpm/zest-writer/$VERSION/$RPMFILE" + +echo "Sign" + +curl -u "firm1:$APIKEY" -X POST "https://api.bintray.com/calc_metadata/firm1/rpm"