Skip to content
This repository was archived by the owner on May 3, 2019. It is now read-only.

feat: Gitlab Continuous Integration Build yml Sample #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions template/.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
image: vgaidarji/docker-android-cordova:latest

cache:
paths:
- node_modules/

stages:
- build
- test

build_job:
stage: build
before_script:
- node -v
- npm -v
script:
- npm install
- cd cordova
- cordova platform add android --save
- cordova platform ls
- cordova build android --release --device
- cordova build android --debug --device
- cd ..
artifacts:
name: "${CI_BUILD_STAGE}_${CI_BUILD_REF_NAME}"
paths:
- cordova/platforms/android/build/outputs/apk/*.apk
environment:
name: production

test_job:
stage: test
before_script:
- node -v
- npm -v
script:
- npm install
- npm run unit
artifacts:
name: "${CI_BUILD_STAGE}_${CI_BUILD_REF_NAME}"
paths:
- test/unit/coverage/*.*
environment:
name: production