-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
55 lines (48 loc) · 1009 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
image: "python:3.7"
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- python3 --version
- pip3 install -r src/requirements.txt
stages:
- Static Analysis
- Test
- Deploy
mypy:
stage: Static Analysis
script:
- pwd
- ls -l
flake8:
stage: Static Analysis
script:
- flake8 --max-line-length=120 bild/*.py
pylint:
stage: Static Analysis
allow_failure: true
script:
- pylint -d C0301 src/core/*.py
- pylint -d C0301 src/api/*.py
unit_test:
stage: Test
script:
- cd src
- python manage.py test
e2e_test:
image: moneymeets/cypress-python
stage: Test
script:
- npm install cypress --save-dev
- python3 src/manage.py runserver & $(npm bin)/cypress run
# deploy_staging:
# stage: Deploy
# script:
# - apt-get update -qy
# - apt-get install -y ruby-dev
# - gem install dpl
# - dpl --provider=heroku --app=timetravelmaps --api-key=8e8a1068-2e7b-4937-9f65-e684fe93d6e7
# only:
# - master
# - dev
# - heroku
# - captcha_embed