From ac0566c8e467d18f128e08427ec322e9f180a25f Mon Sep 17 00:00:00 2001 From: Leratier Bretonnien Date: Thu, 11 Mar 2021 11:04:12 +0000 Subject: [PATCH] Add .gitlab-ci.yml --- .gitlab-ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..d358301 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,28 @@ +image: python:3-alpine + +before_script: + - apk update + - apk add zip + +stages: + - test + - build + +test: + stage: test + script: + - python -mjson.tool 'world.json' > /dev/null + +build: + stage: build + script: + - zip world-rdd-fontaine-ortigrise.zip -r *.js *.json *.md data scenes -x ".*" + artifacts: + name: world-rdd-fontaine-ortigrise + when: on_success + paths: + - world-rdd-fontaine-ortigrise.zip + when: on_success + only: + - tags + - master