forked from gitlabform/gitlabform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (63 loc) · 3.06 KB
/
.travis.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
59
60
61
62
63
64
65
66
67
68
69
language: python
services:
- docker
addons:
apt:
packages:
- expect-dev # for unbuffer
install:
- sudo apt-get -y install pandoc
- pip install pypandoc
- python setup.py develop
jobs:
include:
# check code formatting
- python: "3.8"
before_script:
- pip install black
script: black --check .
# unit tests
- python: "3.8"
script: unbuffer py.test --ignore gitlabform/gitlabform/test
- python: "3.7"
script: unbuffer py.test --ignore gitlabform/gitlabform/test
- python: "3.6"
script: unbuffer py.test --ignore gitlabform/gitlabform/test
- python: "3.5"
script: unbuffer py.test --ignore gitlabform/gitlabform/test
- name: "Security tests"
python: "3.7"
before_script:
- pip install bandit
script: bandit -r gitlabform -x "*/test/*"
- name: "Integration tests"
python: "3.8"
before_script:
- mv dev/* .
- bash run_gitlab_in_docker.sh
- export GITLAB_URL=$(cat gitlab_url.txt)
- export GITLAB_TOKEN=$(cat gitlab_token.txt)
script: unbuffer py.test gitlabform/gitlabform/test
# release (on tags only)
- stage: Release
if: tag IS present
python: "3.8"
env:
- secure: "H6voGOBAqMavbLK63M3IAl+6GtAj1pZWExwPvmMytHVRXUeyxlC7Gy7piknUk+rAXE8F/bRwSRrdLxlN3i5SIQWlel4Zj+VSls8M7FUc05NtqSN8m3khm7Xr3u5/W58OXyiqJ3/9ozc5b8N4tuTPKBsxVlZCQuz1KhHn1WV/uPaJoKOlOoR3S6jJFPCPpDYNaadBtZNrmRgXux3KProO6pikqHQ6W9qtvK2YjJXVfXF3R1hhfdWD5Jo6yX0B1aINYWYoUWiQXdaahp0iU7ALENeaij6mB+U1Fo6/Fu9xHvU4cBdRsh2WtZUjHjiIKh5ZYFtWurQr8l/7fNz+zsaCD4y2Uc3QNvLsZ2H57sh593luT8UbQWrwUVnRkO2f5plGY/4M9M3YpeleUNbp9MX6PJHafl7YYtGIGwdad3l70d0Qmf1VxT2nSHp3VvmlxAWGtKBbMtKWYBaUZOjnteGCYfE5SosD54gmgb2gkspRafI+ef+A6MK5+WU8SAmCtxrzJgky9GsuRhn9KddOx1EZqPMfVaByy6Tcjp/f2Uc66Rd416IPjLEEcU6XmO8gGV9Obu5VEbvdiHxEnJTHcXmrB4fqjntn60Yn/1R9P0U5QVBqJowf6zTOztRtD9JgYaWYpz0/TMvkasLFXdvhCJl2vCIp91cY2Pr/Z/RzVce7eh4="
- alpine_version=alpine3.12 debian_version=buster
- push_images=true
script: echo "Releasing app to PyPI and Dockerhub..."
deploy:
- provider: pypi
on:
repo: egnyte/gitlabform
tags: true
user: python-egnyte
password:
secure: "DxUicAiXMUmoS0h5YYfGhcjeOvf5aPACN/ljn6GITR0MtoLFzRrmuuNPHuAseNbu8Q7fOcGVQ9ez6tQhGrjY0wzjSQmWIsSX9kez1OiVNrGDRKoKKLmfkxAO6mRU9GHOYT65mKQAW8Mdl14j9X1CxyO5qYb9CrmPCXCFQq8Bp45t1sTv1hypZpSJtrc5JUy8FymOFbI65nitr9wf3aWWMCS1Tv7JdpottiQ3OtmqYzvpRzbymDWcn2P8WX0nfrPTPaqJdt1wz+nzOusxj0SIO4LTPx0CjdALLNJqF9w9CZUvln93ZToIdwMLYPjWQ59WF7Mb42chTCABtLgetkl6qy9GFZtGauoeF9S3vnU7GT3lFVDTCVQeaAo5+nUvIbcj7NnBZipsEa+Cnv6Ijfrh4eEf7JMbnGuUl5rv6vxUl1t+uGMoWjDfHMPE9DvwzVg3AsPpyeu+olTY7xMDZ/47sR4/likTzeamGNL7cuj7BknkVSIH+wAbWpU9v5zctStNs3vPJX2gNdawsumsVZbAPm+6JeItt+bVWGcJEd6XfluNUFxj61YnYAi9QVj3L0lYPRRRa7LKP1ryDBwWeP4vUYdLhGj5qPTzN4HVJAN8bWGehaWK9f57DuuKvRw7V5vXkTRM5loRz0lziaWkUmew9sK3asw1jMC0uYsVak/us50="
distributions: "sdist bdist_wheel"
- provider: script
on:
repo: egnyte/gitlabform
tags: true
script: bash dev/build_docker_images.sh