Browse Source

after all other flavours

tobiaskaminsky 8 năm trước cách đây
mục cha
commit
80dfc59d50
1 tập tin đã thay đổi với 11 bổ sung6 xóa
  1. 11 6
      .drone.yml

+ 11 - 6
.drone.yml

@@ -1,10 +1,4 @@
 pipeline:
-  lint:
-    image: nextcloudci/android:android-18
-    commands:
-      - export BRANCH=$(scripts/lint/getBranchName.sh ${GIT_USERNAME} ${GIT_TOKEN} ${DRONE_PULL_REQUEST})
-      - ruby scripts/lint/lint-up.rb ${GIT_USERNAME} ${GIT_TOKEN} $BRANCH
-
   test:
     image: nextcloudci/android:android-18
     commands:
@@ -34,6 +28,17 @@ pipeline:
       - ANDROID_ABI=armeabi-v7a
       - LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:/opt/android-sdk-linux/tools/lib64/gles_mesa/
 
+  lint:
+      image: nextcloudci/android:android-18
+      commands:
+        # needs gplay
+        - sed -i '/com.google.*.gms/s/^.*\/\///g' build.gradle
+        - export BRANCH=$(scripts/lint/getBranchName.sh ${GIT_USERNAME} ${GIT_TOKEN} ${DRONE_PULL_REQUEST})
+        - ruby scripts/lint/lint-up.rb ${GIT_USERNAME} ${GIT_TOKEN} $BRANCH
+      when:
+        matrix:
+          FLAVOUR: Modified
+
 matrix:
   FLAVOUR:
     - Generic