forked from 42ity/fty-email
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci_deploy.sh
executable file
·29 lines (26 loc) · 1.02 KB
/
ci_deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
################################################################################
# THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
# READ THE ZPROJECT/README.MD FOR INFORMATION ABOUT MAKING PERMANENT CHANGES. #
################################################################################
set -x
set -e
if [ "$BUILD_TYPE" == "default" ]; then
# Tell travis to deploy all files in dist
mkdir dist
export FTY_EMAIL_DEPLOYMENT=dist/*
# Move archives to dist
mv *.tar.gz dist
mv *.zip dist
# Generate hash sums
cd dist
md5sum *.zip *.tar.gz > MD5SUMS
sha1sum *.zip *.tar.gz > SHA1SUMS
cd -
elif [ "$BUILD_TYPE" == "bindings" ] && [ "$BINDING" == "jni" ]; then
( cd bindings/jni && TERM=dumb PKG_CONFIG_PATH=/tmp/lib/pkgconfig ./gradlew clean bintrayUpload )
cp bindings/jni/android/fty_email-android.jar fty_email-android-1.0.0.jar
export FTY_EMAIL_DEPLOYMENT=fty_email-android-1.0.0.jar
else
export FTY_EMAIL_DEPLOYMENT=""
fi