forked from pulp/pulpcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (53 loc) · 1.33 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
sudo: required
# https://docs.travis-ci.com/user/trusty-ci-environment/
dist: xenial
language: python
python:
- '3.6'
- '3.7'
env:
matrix:
- DJANGO_MAX=2.2.100 DB=postgres TEST=pulp
- DJANGO_MAX=2.2.100 TEST=docs
matrix:
fast_finish: true
addons:
apt:
packages:
- httpie
- jq
# postgres versions provided by el7 RHSCL (lowest supportable version)
postgresql: '9.6'
services:
- postgresql
- redis-server
install: source .travis/install.sh
before_script: source .travis/before_script.sh
script: .travis/script.sh
jobs:
include:
- stage: deploy
script: skip
deploy:
provider: pypi
distributions: sdist bdist_wheel
user: pulp
password:
secure: "ej2lekfOr8S3Du6D6HPlB20+g5jwgZz75ouHlqIpc+IAgdAxmpn5vkspsAevMtchLw7sNgDAAbl0bQVacMDnn+zbo21s93OXcOmYzgy4IlTgopc+xi1XaKFdLMLiEiZ+KOGVJgg7yQwS3yeS28FARZGNDYTF/+N7eITteDThcG4="
on:
tags: true
if: tag IS present
- stage: publish-beta-docs
script: bash .travis/publish_docs.sh beta
env:
- DJANGO_MAX=2.2.100
- DB=postgres
- TEST=docs
if: tag IS present
- stage: publish-nightly-docs
script: bash .travis/publish_docs.sh nightly
env:
- DJANGO_MAX=2.2.100
- DB=postgres
- TEST=docs
if: type != pull_request