Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 0152349c authored by moh. afifun naily's avatar moh. afifun naily
Browse files

Merge branch 'develop' of https://gitlab.cs.ui.ac.id/mihp26/MyUI-Dev into develop

parents 84fb1288 10065e2c
No related branches found
No related tags found
2 merge requests!185Develop,!132Task/ui info matkul
image: hafiyyan94/androidsdk25gitlabci:newSet
#image: hafiyyan94/androidsdk25gitlabci:newSet
before_script:
- chmod +x ./gradlew
# - chmod +x ./gradlew
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- ssh-add <(echo "$DEPLOY_KEY")
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- ssh-keyscan -t rsa 152.118.29.42 >> ~/.ssh/known_hosts
stages:
- build
- test
- staging
# unitTests:
# stage: test
# script:
# - ./gradlew testDebugUnitTestCoverage
# artifacts:
# paths:
# - app/build/reports
unitTests:
stage: test
deploy_backend_staging:
stage: staging
type: deploy
script:
- ./gradlew testDebugUnitTestCoverage
artifacts:
paths:
- app/build/reports
- cd backend-project
- git init
- git remote add staging ssh://myui@152.118.29.42/home/myui/repository/staging.git || true
- git add .
- git -c user.name='myui' -c user.email='myui@myui' commit -m 'deploy to staging' || true
- git push staging master --force
- ssh myui@152.118.29.42 -t "sudo -E service apache2 restart"
only:
- develop
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment