diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..1b6f61bf8cd53fd7fc1acc64cdd1769b47d51200 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +image: python3.9 + +stages: + - pipeline + +before_script: + - pip3 install -r requirements.txt + +pipeline: + stage: pipeline + script: + - echo "build stage" + - jupyter nbconvert --to script app.ipynb + - if [ ! -f app.py ]; then echo "Conversion failed, exiting pipeline"; exit 1; fi + - echo "build completed" + - echo "Starting Flask" + - nohup python3 app.py & + - sleep 5 + - echo "App should have started in the background" \ No newline at end of file