-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
34 lines (31 loc) · 1015 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
stages:
- test
# - deploy
before_script:
- export PYTHONPATH="${PYTHONPATH}:/home/gitlab-runner/builds/da0b8d35/0/PUM-Company3/Software/"
test_script:
script:
- echo "test_script"
- pwd
- source /home/sebbe953/virtualenvs/pum-venv/bin/activate
- python --version
- python ./Product/Database/DBConn.py
- python ./Product/Database/DBFillSmallSet.py
- python ./Product/TrendManager/RunTrend.py
- ./test_script
stage: test
# deploy_script:
# script:
# - echo "deploy_script"
# - pwd
# - whoami
# - docker-compose -f docker-compose.yml -f docker-compose.prod.yml build web
# - docker-compose -f docker-compose.yml -f docker-compose.prod.yml build recommendation
# - docker-compose -f docker-compose.yml -f docker-compose.prod.yml build trending
# - nohup docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
# - cd Product/Frontend
# - npm install
# - npm run build:prod
# only:
# - master
# stage: deploy