Commit 572fc992 authored by alep's avatar alep

fix: support legacy GitLab CI syntax

parent 15c60941
Pipeline #690 failed
......@@ -8,7 +8,7 @@ variables:
ANDROID_HOME: "/Users/alypmustaqim/Library/Android/sdk"
ANDROID_SDK_ROOT: "/Users/alypmustaqim/Library/Android/sdk"
default:
.common:
tags:
- shell
......@@ -21,14 +21,13 @@ default:
- yarn --version
cache:
key:
files:
- yarn.lock
key: "$CI_COMMIT_REF_SLUG"
paths:
- node_modules/
- android/.gradle/
install_dependencies:
extends: .common
stage: install
script:
- yarn install --frozen-lockfile
......@@ -38,28 +37,28 @@ install_dependencies:
expire_in: 1 hour
lint:
extends: .common
stage: test
needs:
- job: install_dependencies
artifacts: true
dependencies:
- install_dependencies
script:
- yarn lint
allow_failure: false
test:
extends: .common
stage: test
needs:
- job: install_dependencies
artifacts: true
dependencies:
- install_dependencies
script:
- yarn test --watchAll=false --passWithNoTests
allow_failure: false
build_android:
extends: .common
stage: build
needs:
- job: install_dependencies
artifacts: true
dependencies:
- install_dependencies
script:
- echo "ANDROID_HOME=$ANDROID_HOME"
......@@ -78,5 +77,5 @@ build_android:
- android/app/build/outputs/apk/debug/*.apk
expire_in: 7 days
rules:
- if: '$CI_COMMIT_BRANCH == "main"'
\ No newline at end of file
only:
- main
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment