-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
58 lines (49 loc) · 1.21 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
stages:
- test
- release
variables:
ANSIBLE_FORCE_COLOR: 'True'
ANSIBLE_HOST_KEY_CHECKING: 'False'
py-sec-safety:
stage: test
image: yourlabs/python
script: safety check -r requirements.txt
py-qa:
stage: test
image: yourlabs/python
script: flake8 bigsudo --exclude unixy.py
.test: &test
stage: test
image: yourlabs/ansible
before_script:
- pip install --upgrade --editable .
- set -eux
test-playbook-executable:
<<: *test
script: |
./example/playbook.yml
grep hello ./playbook.out
test-clone-main:
<<: *test
script: |
bigsudo yourlabs.io/oss/yourlabs.bigsudo-example @localhost example_variable=$(pwd)/test1 -v
grep main test1
test-clone-update:
<<: *test
variables:
script: |
bigsudo yourlabs.io/oss/yourlabs.bigsudo-example update example_variable=$(pwd)/test2 -v
grep update test2
test-clone-local:
<<: *test
script: |
git clone https://yourlabs.io/oss/yourlabs.bigsudo-example.git /example
bigsudo /example @localhost example_variable=$(pwd)/test3 -v
grep main test3
bigsudo /example @localhost example_variable=$(pwd)/test4 update -v
grep update test4
pypi:
stage: release
image: yourlabs/python
only: [tags]
script: pypi-release