From 1f193df8a4a9f7e625cf520d5ab404a89caddb75 Mon Sep 17 00:00:00 2001 From: Chris Hines <chris.hines@monash.edu> Date: Tue, 12 Feb 2019 09:59:01 +1100 Subject: [PATCH] create a python virtual env as an artifact based on gitlab CI --- .gitlab-ci.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..2e8fc10 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,41 @@ +stages: + - build + - deploy + +build: + image: ubuntu + stage: build + script: + - apt update + - apt install -y python3 + - mkdir -p /opt/strudle2/ + - python3 -m venv /opt/strudel2/tes + - source /opt/strudel2/tes/bin/activate + - pip install ./setup.py + artifacts: + paths: + - /opt/strudel2/tes + +deploy_test: + stage: deploy + only: + - testing@hpc-team/strudelv2_spa + tags: + - deploy_test + script: + - echo "deploying test" + dependencies: + - build + +deploy_dev: + stage: deploy + only: + - dev@hpc-team/strudelv2_spa + tags: + - deploy_dev + script: + - echo "deploying dev" + - ls -l + - ./install.sh + dependencies: + - build -- GitLab