forked from uber/orbit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (39 loc) · 1.21 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
language: python
python:
- "3.7"
install:
- pip install -U pip
- pip install -U setuptools
- pip install -r requirements.txt
- pip install -r requirements-test.txt
- python setup.py develop
before_script:
- "curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | sudo bash"
jobs:
include:
- stage: test
name: test
script: python setup.py test
- stage: fossa
# FOSSA_API_KEY unavailable for pull requests
# https://docs.travis-ci.com/user/pull-requests/#pull-requests-and-security-restrictions
if: fork = false
name: fossa
script:
# NOTE: before running `fossa` make sure to save your FOSSA_API_KEY in your
# environment variable in Travis see below.
- fossa init
- fossa analyze
- stage: deploy
script: skip
deploy:
provider: pypi
edge: true
username: "__token__"
password: $PYPI_API_TOKEN
on:
tags: true
skip_existing: true
distributions: "sdist bdist_wheel"
after_success:
- fossa test