diff --git a/.drone.yml b/.drone.yml index fe00f4ac..1e4dc246 100644 --- a/.drone.yml +++ b/.drone.yml @@ -23,59 +23,65 @@ steps: commands: - ln -s /var/lib/drone-runner-exec/.local $HOME/.local - - name: Build Intermediate Linux Release Artifact (Binary) + - name: Test 1 commands: - - bash ci.sh --build-linux - environment: - STANDALONE_KEYSTORE_PASS: - from_secret: STANDALONE_KEYSTORE_PASS - FDROID_KEYSTORE_PASS: - from_secret: FDROID_KEYSTORE_PASS + - ./ci.sh --test - - name: Debug + - name: Test 2 commands: - - ls -la - - cat ci.sh - - bash ci.sh + - ./ci.sh --test2 - - name: Build Intermediate Android Release Artifact (.APK) + - name: Test 3 commands: - - bash ci.sh --build-apk - environment: - STANDALONE_KEYSTORE_PASS: - from_secret: STANDALONE_KEYSTORE_PASS - FDROID_KEYSTORE_PASS: - from_secret: FDROID_KEYSTORE_PASS + - ./ci.sh --test3 - - name: Sign Android Release Artifact (.APK) for Standalone Use - commands: - - ./ci.sh --sign-apk-standalone - environment: - STANDALONE_KEYSTORE_PASS: - from_secret: STANDALONE_KEYSTORE_PASS - FDROID_KEYSTORE_PASS: - from_secret: FDROID_KEYSTORE_PASS +# - name: Build Intermediate Linux Release Artifact (Binary) +# commands: +# - bash ci.sh --build-linux +# environment: +# STANDALONE_KEYSTORE_PASS: +# from_secret: STANDALONE_KEYSTORE_PASS +# FDROID_KEYSTORE_PASS: +# from_secret: FDROID_KEYSTORE_PASS - - name: Sign Android Release Artifact (.APK) for F-Droid Repository - commands: - - ./ci.sh --sign-apk-fdroid - environment: - STANDALONE_KEYSTORE_PASS: - from_secret: STANDALONE_KEYSTORE_PASS - FDROID_KEYSTORE_PASS: - from_secret: FDROID_KEYSTORE_PASS +# - name: Build Intermediate Android Release Artifact (.APK) +# commands: +# - bash ci.sh --build-apk +# environment: +# STANDALONE_KEYSTORE_PASS: +# from_secret: STANDALONE_KEYSTORE_PASS +# FDROID_KEYSTORE_PASS: +# from_secret: FDROID_KEYSTORE_PASS - - name: Package Linux AppImage Artifact - commands: - - ./ci.sh --package-linux-appimage +# - name: Sign Android Release Artifact (.APK) for Standalone Use +# commands: +# - ./ci.sh --sign-apk-standalone +# environment: +# STANDALONE_KEYSTORE_PASS: +# from_secret: STANDALONE_KEYSTORE_PASS +# FDROID_KEYSTORE_PASS: +# from_secret: FDROID_KEYSTORE_PASS - - name: Package Linux Flatpak Artifact - commands: - - ./ci.sh --package-linux-flatpak +# - name: Sign Android Release Artifact (.APK) for F-Droid Repository +# commands: +# - ./ci.sh --sign-apk-fdroid +# environment: +# STANDALONE_KEYSTORE_PASS: +# from_secret: STANDALONE_KEYSTORE_PASS +# FDROID_KEYSTORE_PASS: +# from_secret: FDROID_KEYSTORE_PASS - - name: Package Linux Archive Artifact - commands: - - ./ci.sh --package-linux-archive +# - name: Package Linux AppImage Artifact +# commands: +# - ./ci.sh --package-linux-appimage + +# - name: Package Linux Flatpak Artifact +# commands: +# - ./ci.sh --package-linux-flatpak + +# - name: Package Linux Archive Artifact +# commands: +# - ./ci.sh --package-linux-archive trigger: event: diff --git a/ci.sh b/ci.sh index 5b038e07..c0ab269e 100755 --- a/ci.sh +++ b/ci.sh @@ -2,7 +2,7 @@ set -o errexit -o pipefail -o noclobber -o nounset -x CONTAINER_IMAGE="localhost/flutter-build-env" -OPTS=$(getopt -o "" --long "build-linux,build-apk,sign-apk-standalone,sign-apk-fdroid,package-linux-appimage,package-linux-flatpak,package-linux-archive" -- "$@") +OPTS=$(getopt -o "" --long "test,test2,test3,build-linux,build-apk,sign-apk-standalone,sign-apk-fdroid,package-linux-appimage,package-linux-flatpak,package-linux-archive" -- "$@") eval set -- "$OPTS" usage () { @@ -52,8 +52,16 @@ package_linux_archive () { while true; do case "$1" in - --build-linux ) - build_linux + --test ) + echo 1 + shift + ;; + --test2 ) + echo 2 + shift + ;; + --test3 ) + echo 3 shift ;; --build-apk )