-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
47 lines (37 loc) · 928 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
variables:
TZ: "America/New_York"
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
APT_CACHE_DIR: "$CI_PROJECT_DIR/apt-cache"
POSTGRES_DB: custom_db
POSTGRES_USER: custom_user
POSTGRES_PASSWORD: custom_pass
FARADAY_USER: custom_user
FARADAY_PASSWORD: custom_pass
FARADAY_EMAIL: [email protected]
FARADAY_REF: white/dev
EXECUTOR_DIR: ./basic_executor.py
workflow:
rules:
- if: $CI_MERGE_REQUEST_ID
when: never
- when: always
cache:
paths:
- "$CI_PROJECT_DIR/.cache/pip"
- "$CI_PROJECT_DIR/apt-cache"
before_script:
- mkdir -pv $APT_CACHE_DIR
stages:
- testing
- post_testing
- integration-build
- integration-test
- build
- publish
- deploy
services:
- postgres:latest
include:
- local: .gitlab/ci/.pre-gitlab-ci.yml
- local: .gitlab/ci/testing/.testing-gitlab-ci.yml
- local: .gitlab/ci/publish/.pypi-gitlab-ci.yml