From 0f8b4bc900552780537452b33f63f25bba43248f Mon Sep 17 00:00:00 2001 From: Obonyo Jimmy Date: Sun, 18 Dec 2016 23:33:16 +0300 Subject: [PATCH] feat: Gitlab Continuous Integration Build yml Sample Added .gitlab-ci.yml for continous cordova build ref #256 on quasar repo --- template/.gitlab-ci.yml | 44 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 template/.gitlab-ci.yml diff --git a/template/.gitlab-ci.yml b/template/.gitlab-ci.yml new file mode 100644 index 0000000..ceb95c9 --- /dev/null +++ b/template/.gitlab-ci.yml @@ -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