Fakultas Ilmu Komputer UI

Commit 078e9279 authored by Nandhika Prayoga's avatar Nandhika Prayoga
Browse files

[CHORES] update pipeline script for new repository

parent a1242048
......@@ -9,71 +9,24 @@ cache:
- ios/
stages:
# - setup
# - test
- test
- build
# - deploy
# setup:
# stage: setup
# script:
# - npm install
# - cd android
# - echo -e "RELEASE_STORE_FILE=${RELEASE_STORE_FILE}\nRELEASE_STORE_PASSWORD=${RELEASE_STORE_PASSWORD}\nRELEASE_KEY_ALIAS=${RELEASE_KEY_ALIAS}\nRELEASE_KEY_PASSWORD=${RELEASE_KEY_PASSWORD}" >> local.properties
# - cat local.properties
# only:
# - staging
# - master
# test:
# stage: test
# script:
# - npm test -- --coverage --watchAll=false
# only:
# - staging
# - master
# build:
# stage: build
# script:
# - cd android
# - chmod +x gradlew && ./gradlew assembleRelease
# - cd .. && cp android/app/build/outputs/apk/release/app-release.apk $CI_PROJECT_NAME-$CI_COMMIT_REF_NAME.apk
# artifacts:
# name: "$CI_PROJECT_NAME-$PLATFORM-$CI_COMMIT_REF_NAME"
# paths:
# - $CI_PROJECT_NAME-$CI_COMMIT_REF_NAME.apk
# only:
# - staging
# - master
# deploy:
# stage: deploy
# script:
# - cp android/app/build/outputs/apk/release/app-release.apk $CI_PROJECT_NAME-$CI_COMMIT_REF_NAME.apk
# artifacts:
# name: "$CI_PROJECT_NAME-$PLATFORM-$CI_COMMIT_REF_NAME"
# paths:
# - $CI_PROJECT_NAME-$CI_COMMIT_REF_NAME.apk
# expire_in: 7 days
# only:
# - staging
# - master
test:
stage: test
script:
- npm i
- npm test -- --coverage --watchAll=false
only:
- staging
- master
build:
stage: build
before_script:
# - printenv
# - echo $PATH
# - ls
- export ANDROID_SDK_ROOT=/usr/lib/android-sdk
- export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools
- export PATH=$PATH:$ANDROID_SDK_ROOT/tools/bin
# - printenv
# - export ANDROID_SDK_ROOT=$ANDROID_SDK_ROOT
# - yes | sdkmanager --licenses && yes | sdkmanager --update
script:
- npm i
- cd android
......
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