forked from devpi/devpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (62 loc) · 1.73 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
language: python
sudo: false
addons:
postgresql: "9.4"
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "nightly"
- "pypy"
- "pypy3"
env:
global:
- DEVPI_INDEX="devpi-travis/${TRAVIS_REPO_SLUG/\//_}_${TRAVIS_BRANCH/\//_}"
matrix:
- PROJECT=common
- PROJECT=server
- PROJECT=web
- PROJECT=client
- PROJECT=postgresql
install: pip install 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}" || true
- echo "${DEVPI_INDEX_URL}"
- cd $PROJECT
- tox -i "${DEVPI_INDEX_URL}" --pre
stages:
- name: create packages
if: type IN (push, api, cron)
- test
jobs:
include:
- stage: create packages
addons: []
install: pip install devpi-client towncrier
python: "2.7"
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==4.2.1 "${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