forked from digiteinfotech/kairon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
74 lines (70 loc) · 3.52 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
stages:
- test
- build-dev
- build-release
- cleanup
before_script:
- echo "Stage Started for " $CI_COMMIT_REF_NAME
- export PATH=$PATH:/usr/local/bin
test:
tags:
- kairon-test
stage: test
script:
- python3.8 -V
- python3.8 -m pip install virtualenv
- python3.8 -m virtualenv env
- source env/bin/activate
- python3.8 -m pip install pip==20.2.4
- export PIP_DEFAULT_TIMEOUT=100
- python3.8 -m pip --no-cache-dir install -r requirements.txt
- python3.8 -m nltk.downloader wordnet
- python3.8 -m nltk.downloader averaged_perceptron_tagger
- python3.8 -m nltk.downloader punkt
- python3.8 -m nltk.downloader stopwords
- python3.8 -m nltk.downloader omw-1.4
- python3.8 -m pytest tests --html=report.html --cov=kairon --cov-report html:coverage_html
- deactivate
- rm -r env/
build-dev:
tags:
- kairon-build-dev
only:
- master
stage: build-dev
script:
- docker build -f ./docker/Dockerfile_api -t kairon-api-dev:latest .
- docker build -f ./docker/Dockerfile_task -t kairon-task-dev:latest .
- docker build -f ./docker/Dockerfile_paraphrase -t kairon-paraphrase-dev:latest .
- docker build -f ./docker/Dockerfile_question_generation -t kairon-question-generation-dev:latest .
- docker build -f ./docker/Dockerfile_action_server -t kairon-action-server-dev:latest .
- docker build -f ./docker/Dockerfile_task_training_data_generator -t kairon-task-data-gen-dev:latest .
- docker build -f ./docker/Dockerfile_task_data_importer -t kairon-data-importer-dev:latest .
- docker build -f ./docker/Dockerfile_history_server -t kairon-history-server-dev:latest .
- docker build -f ./docker/Dockerfile_chat -t kairon-chat-dev:latest .
- docker build -f ./docker/Dockerfile_task_model_testing -t kairon-model-tester-dev:latest .
- docker build -f ./docker/Dockerfile_task_delete_history -t kairon-delete-history-dev:latest .
- docker build -f ./docker/Dockerfile_event_server -t kairon-event-server-dev:latest .
- docker build -f ./docker/Dockerfile_event_worker -t kairon-worker-dev:latest .
- docker build -f ./docker/Dockerfile_task_multilingual_translator -t kairon-multilingual-dev:latest .
build-release:
tags:
- kairon-build-release
only:
- release
stage: build-release
script:
- docker build -f ./docker/Dockerfile_api -t kairon-api:latest .
- docker build -f ./docker/Dockerfile_task -t kairon-task:latest .
- docker build -f ./docker/Dockerfile_paraphrase -t kairon-paraphrase:latest .
- docker build -f ./docker/Dockerfile_question_generation -t kairon-question-generation:latest .
- docker build -f ./docker/Dockerfile_action_server -t kairon-action-server:latest .
- docker build -f ./docker/Dockerfile_task_training_data_generator -t kairon-task-data-gen:latest .
- docker build -f ./docker/Dockerfile_task_data_importer -t kairon-data-importer:latest .
- docker build -f ./docker/Dockerfile_history_server -t kairon-history-server:latest .
- docker build -f ./docker/Dockerfile_chat -t kairon-chat:latest .
- docker build -f ./docker/Dockerfile_task_model_testing -t kairon-model-tester:latest .
- docker build -f ./docker/Dockerfile_task_delete_history -t kairon-delete-history:latest .
- docker build -f ./docker/Dockerfile_event_server -t kairon-event-server:latest .
- docker build -f ./docker/Dockerfile_event_worker -t kairon-worker:latest .
- docker build -f ./docker/Dockerfile_task_multilingual_translator -t kairon-multilingual:latest .