-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
43 lines (40 loc) · 1.55 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
stages:
- test
- build
MT-filename-parser:
stage: test
image: alpine:latest
script:
#"Installing dependencies..."
- apk add python3 py3-pip py3-numpy py3-multidict py3-yarl py3-psutil py3-watchdog py3-requests py3-tz build-base jpeg-dev zlib-dev python3-dev
- pip3 install pymongo python_json_logger image BeautifulSoup4
#"Testing filename parser and renamer..."
- python3 -m unittest discover -s tests -p 'test_manga.py'
MT-MetadataXMLConstruct:
stage: test
image: alpine:latest
script:
#"Installing dependencies..."
- apk add python3 py3-pip py3-numpy py3-multidict py3-yarl py3-psutil py3-watchdog py3-requests py3-tz build-base jpeg-dev zlib-dev python3-dev
- pip3 install pymongo python_json_logger image BeautifulSoup4
#"Testing metadata tagger and xml construction"
- python3 -m unittest discover -s tests -p 'test_integration.py'
build:
stage: build
image: "registry.gitlab.com/gitlab-org/cluster-integration/auto-build-image:v0.4.0"
variables:
DOCKER_TLS_CERTDIR: ""
services:
- docker:19.03.12-dind
script:
- |
if [[ -z "$CI_COMMIT_TAG" ]]; then
export CI_APPLICATION_REPOSITORY=${CI_APPLICATION_REPOSITORY:-$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG}
export CI_APPLICATION_TAG=${CI_APPLICATION_TAG:-$CI_COMMIT_SHA}
else
export CI_APPLICATION_REPOSITORY=${CI_APPLICATION_REPOSITORY:-$CI_REGISTRY_IMAGE}
export CI_APPLICATION_TAG=${CI_APPLICATION_TAG:-$CI_COMMIT_TAG}
fi
- /build/build.sh
rules:
- if: '$CI_COMMIT_TAG || $CI_COMMIT_BRANCH'