浏览代码

fix qa
fix lint
fix uploadArtifact.sh

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>

tobiasKaminsky 3 年之前
父节点
当前提交
e32de23933
共有 3 个文件被更改,包括 6 次插入6 次删除
  1. 3 3
      .github/workflows/qa.yml
  2. 1 1
      scripts/analysis/lint-up.rb
  3. 2 2
      scripts/uploadArtifact.sh

+ 3 - 3
.github/workflows/qa.yml

@@ -29,8 +29,8 @@ jobs:
                 run: |
                 run: |
                     mkdir -p $HOME/.gradle
                     mkdir -p $HOME/.gradle
                     echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > $HOME/.gradle/gradle.properties
                     echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > $HOME/.gradle/gradle.properties
-                    sed -i "/qa/,/\}/ s/versionCode .*/versionCode ${{github.event.number}} /" build.gradle
-                    sed -i "/qa/,/\}/ s/versionName .*/versionName \"${{github.event.number}}\"/" build.gradle
+                    sed -i "/qa/,/\}/ s/versionCode .*/versionCode ${{github.event.number}} /" app/build.gradle
+                    sed -i "/qa/,/\}/ s/versionName .*/versionName \"${{github.event.number}}\"/" app/build.gradle
                     ./gradlew assembleQaDebug
                     ./gradlew assembleQaDebug
-                    $(find /usr/local/lib/android/sdk/build-tools/*/apksigner | sort | tail -n1) sign  --ks-pass pass:$KS_PASS --key-pass pass:$KEY_PASS --ks-key-alias key0 --ks scripts/QA_keystore.jks build/outputs/apk/qa/debug/qa-debug-*.apk
+                    $(find /usr/local/lib/android/sdk/build-tools/*/apksigner | sort | tail -n1) sign  --ks-pass pass:$KS_PASS --key-pass pass:$KEY_PASS --ks-key-alias key0 --ks scripts/QA_keystore.jks app/build/outputs/apk/qa/debug/qa-debug-*.apk
                     sudo scripts/uploadArtifact.sh $LOG_USERNAME $LOG_PASSWORD ${{github.event.number}} ${{github.event.number}} ${{ secrets.GITHUB_TOKEN }}
                     sudo scripts/uploadArtifact.sh $LOG_USERNAME $LOG_PASSWORD ${{github.event.number}} ${{github.event.number}} ${{ secrets.GITHUB_TOKEN }}

+ 1 - 1
scripts/analysis/lint-up.rb

@@ -18,7 +18,7 @@ TRAVIS_GIT_USERNAME = String.new("Drone CI server")
 #   lintOptions {
 #   lintOptions {
 #       htmlOutput file("[FILE_NAME].html")
 #       htmlOutput file("[FILE_NAME].html")
 #   }
 #   }
-LINT_REPORT_FILE = String.new("build/reports/lint/lint.html")
+LINT_REPORT_FILE = String.new("app/build/reports/lint/lint.html")
 
 
 # File name and relative path of previous results of this script.
 # File name and relative path of previous results of this script.
 PREVIOUS_LINT_RESULTS_FILE=String.new("scripts/analysis/lint-results.txt")
 PREVIOUS_LINT_RESULTS_FILE=String.new("scripts/analysis/lint-results.txt")

+ 2 - 2
scripts/uploadArtifact.sh

@@ -14,7 +14,7 @@ BUILD=$3
 PR=$4
 PR=$4
 GITHUB_TOKEN=$5
 GITHUB_TOKEN=$5
 
 
-if ! test -e build/outputs/apk/qa/debug/qa-debug-*.apk ; then
+if ! test -e app/build/outputs/apk/qa/debug/qa-debug-*.apk ; then
     exit 1
     exit 1
 fi
 fi
 echo "Uploaded artifact to $DAV_URL/$BUILD.apk"
 echo "Uploaded artifact to $DAV_URL/$BUILD.apk"
@@ -30,6 +30,6 @@ apt-get -y install qrencode
 
 
 qrencode -o $PR.png "$PUBLIC_URL/$BUILD.apk"
 qrencode -o $PR.png "$PUBLIC_URL/$BUILD.apk"
 
 
-curl -u $USER:$PASS -X PUT $DAV_URL/$BUILD.apk --upload-file build/outputs/apk/qa/debug/qa-debug-*.apk
+curl -u $USER:$PASS -X PUT $DAV_URL/$BUILD.apk --upload-file app/build/outputs/apk/qa/debug/qa-debug-*.apk
 curl -u $USER:$PASS -X PUT $DAV_URL/$BUILD.png --upload-file $PR.png
 curl -u $USER:$PASS -X PUT $DAV_URL/$BUILD.png --upload-file $PR.png
 curl --header "authorization: Bearer $GITHUB_TOKEN" -X POST https://api.github.com/repos/nextcloud/android/issues/$PR/comments -d "{ \"body\" : \"APK file: $PUBLIC_URL/$BUILD.apk <br/><br/> ![qrcode]($PUBLIC_URL/$BUILD.png) <br/><br/>To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app. \" }"
 curl --header "authorization: Bearer $GITHUB_TOKEN" -X POST https://api.github.com/repos/nextcloud/android/issues/$PR/comments -d "{ \"body\" : \"APK file: $PUBLIC_URL/$BUILD.apk <br/><br/> ![qrcode]($PUBLIC_URL/$BUILD.png) <br/><br/>To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app. \" }"