forked from uber/causalml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (26 loc) · 933 Bytes
/
.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
language: python
install:
- pip install -U pip
- pip install -r requirements.txt
- pip install -r requirements-test.txt
- python setup.py build_ext --inplace
- python setup.py install
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: pytest -sv
- 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
after_success:
- cd causalml && fossa test