forked from devpi/devpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
155 lines (142 loc) · 3.34 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
dist: xenial
language: python
sudo: false
python:
- "2.7"
- "3.4"
- "3.7"
- "nightly"
- "pypy2.7-7.1.1"
- "pypy3.5-7.0"
env:
global:
- DEVPI_INDEX="devpi-travis/${TRAVIS_REPO_SLUG/\//_}_${TRAVIS_BRANCH/\//_}"
matrix:
- PROJECT=common
- PROJECT=client
install: travis_retry pip install tox tox-travis devpi-client
script:
- export DEVPI_INDEX_URL="https://pypi.org/simple/"
- test "${DEVPI_TRAVIS_PASSWD}" != "" && export DEVPI_INDEX_URL="https://m.devpi.net/${DEVPI_INDEX}/+simple/" || true
- echo "${DEVPI_INDEX_URL}"
- cd $PROJECT
- travis_retry tox -i "${DEVPI_INDEX_URL}" --pre -- -v
stages:
- name: create packages
if: type IN (push, api, cron)
- test
jobs:
include:
- stage: create packages
addons: []
install: travis_retry pip install tox devpi-client towncrier
python: "3.6"
env: []
script:
- devpi use https://m.devpi.net/devpi-travis
- devpi login devpi-travis --password ${DEVPI_TRAVIS_PASSWD}
- yes yes | devpi index --delete "${DEVPI_INDEX}" || true
- devpi index -c "${DEVPI_INDEX}" bases=root/pypi
- devpi use "${DEVPI_INDEX}"
- devpi push --index root/pypi devpi-server==4.0.0 "${DEVPI_INDEX}"
- devpi push --index root/pypi devpi-server==5.2.0 "${DEVPI_INDEX}"
- cd ${TRAVIS_BUILD_DIR}/common
- yes | towncrier
- devpi upload
- cd ${TRAVIS_BUILD_DIR}/server
- yes | towncrier
- devpi upload
- cd ${TRAVIS_BUILD_DIR}/web
- yes | towncrier
- devpi upload
- cd ${TRAVIS_BUILD_DIR}/client
- yes | towncrier
- devpi upload
- cd ${TRAVIS_BUILD_DIR}/postgresql
- yes | towncrier
- devpi upload
#########################
#
# server
#
#########################
- stage: test
python: "2.7"
env: PROJECT=server
addons:
apt:
packages:
- nginx
- stage: test
python: "3.4"
env: PROJECT=server
addons:
apt:
packages:
- nginx
- stage: test
python: "3.7"
env: PROJECT=server
addons:
apt:
packages:
- nginx
- stage: test
python: "nightly"
env: PROJECT=server
addons:
apt:
packages:
- nginx
- stage: test
python: "pypy2.7-7.1.1"
env: PROJECT=server
addons:
apt:
packages:
- nginx
- stage: test
python: "pypy3.5-7.0"
env: PROJECT=server
addons:
apt:
packages:
- nginx
#########################
#
# web
#
#########################
- stage: test
python: "3.4"
env: PROJECT=web
- stage: test
python: "3.7"
env: PROJECT=web
- stage: test
python: "nightly"
env: PROJECT=web
- stage: test
python: "pypy3.5-7.0"
env: PROJECT=web
#########################
#
# postgresql
#
#########################
- stage: test
python: "3.4"
env: PROJECT=postgresql
addons:
apt:
packages:
- nginx
postgresql: "9.5"
- stage: test
python: "pypy3.5-7.0"
env: PROJECT=postgresql
addons:
apt:
packages:
- nginx
postgresql: "9.5"