forked from waldur/python-freeipa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
28 lines (25 loc) · 844 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
include:
- project: "waldur/waldur-pipelines"
file: "/templates/stages.yml"
- project: "waldur/waldur-pipelines"
file: "/templates/test/check-merge-compatibility.yml"
- project: "waldur/waldur-pipelines"
file: "/templates/release/sync-to-github.yml"
- project: "waldur/waldur-pipelines"
file: "/templates/release/python-module-release.yml"
image: 'python:3.6'
variables:
GITHUB_OPENNODE_REPO_URL: "git@github.com:opennode/python-freeipa.git"
Run module tests:
stage: test
interruptible: true
rules:
- if: '$SKIP_TESTS == "true"'
when: never
- if: '$CI_COMMIT_BRANCH == "develop"'
- if: '$CI_COMMIT_BRANCH == "master"'
- if: '$CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+$/'
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
script:
- pip install -e .[tests]
- python setup.py test