Skip to content
Snippets Groups Projects
Commit ddf7b27a authored by Jiang, Weiming (PG/T - Comp Sci & Elec Eng)'s avatar Jiang, Weiming (PG/T - Comp Sci & Elec Eng)
Browse files

Update .gitlab-ci.yml

parent 249c135c
No related branches found
No related tags found
No related merge requests found
Pipeline #48157 passed
...@@ -41,13 +41,14 @@ lint-test-job: # This job also runs in the test stage. ...@@ -41,13 +41,14 @@ lint-test-job: # This job also runs in the test stage.
- sleep 10 - sleep 10
- echo "No lint issues found." - echo "No lint issues found."
deploy-job: # This job runs in the deploy stage. deploy-job:
stage: deploy # It only runs when *both* jobs in the test stage complete successfully. stage: deploy
environment: production environment: production
script: script:
- "echo 'Deploying the application'" - echo 'Deploying the application'
- "python -m pip install -r requirements.txt" - python -m pip install -r requirements.txt
- "python run.py" - python run.py &
- sleep 60 - echo 'Server is running...'
- sleep 60 # Let the server run for a minute.
- echo 'Stopping server...'
- pkill -f run.py - pkill -f run.py
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment