mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Add fossa to travis config
Note that we can't keep the FOSSA_API_TOKEN secret (e.g. via Travis encrypted or repository setting environment variables), because those are not available for PRs from forked repository. Therefor we use a non-confidential push only API token. For details see https://docs.fossa.com/docs/travisci and https://docs.fossa.com/docs/api-reference#section-push-only-api-token Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
This commit is contained in:
parent
8ec4a05d8d
commit
4907e2e2c7
1 changed files with 10 additions and 0 deletions
10
.travis.yml
10
.travis.yml
|
|
@ -2,6 +2,12 @@ dist: xenial
|
|||
language: python
|
||||
cache: pip
|
||||
|
||||
|
||||
env:
|
||||
global:
|
||||
# NOTE: Public push only token (can't be used to read or edit project info)
|
||||
- FOSSA_API_KEY=cbc317812661645ea400ab9ee6c7616a
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- python: "2.7"
|
||||
|
|
@ -16,8 +22,12 @@ matrix:
|
|||
install:
|
||||
- pip install tox coveralls
|
||||
|
||||
before_script:
|
||||
- "curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | sudo bash"
|
||||
|
||||
script:
|
||||
- tox
|
||||
- fossa
|
||||
|
||||
after_success:
|
||||
# Workaround to get coverage reports with relative paths.
|
||||
|
|
|
|||
Loading…
Reference in a new issue