forked from polakowo/vectorbt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (41 loc) · 1.75 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
language: python
install:
- pip install .
- pip install empyrical
- pip install pytest-cov codecov
- pip install pdoc3
- curl -O https://netcologne.dl.sourceforge.net/project/ta-lib/ta-lib/0.4.0/ta-lib-0.4.0-src.tar.gz
- tar -xzf ta-lib-0.4.0-src.tar.gz
- cd ta-lib/
- "./configure --prefix=/usr"
- make
- sudo make install
- cd ..
- pip install TA-Lib
script:
- export NUMBA_BOUNDSCHECK=1
- pytest tests/
- export NUMBA_DISABLE_JIT=1
- pytest --cov=vectorbt tests/
after_success:
- codecov
- twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
- pdoc --html --force --output-dir docs vectorbt --template-dir docs/templates
- mv docs/vectorbt/* docs
- rmdir docs/vectorbt
- rm -rf !(docs)
- echo "<meta http-equiv=\"refresh\" content=\"0; url=./docs/index.html\" />" > index.html
deploy:
- provider: pages
skip_cleanup: true
github_token: "$GITHUB_TOKEN"
keep_history: true
on:
branch: master
- provider: pypi
username: "__token__"
password:
secure: k+1Rs3iUivAanltzMx+SrMoXOv6dvsY2kxzCbLUN2vD3umaM2b6UECbnGnYEb3Y0Mmj0mxu37k9znvOSvbLsXYTZqk7KBFy9XPI+b6tSj7u7O+GlTAZta6VixnsZWlyuwUIbPTcNd82HqfLbhU/pOo9ZNzWDhg37LASKrIz//orJoJjYGfAEDU9u8BA7k7pcCcGp5N1a7O5Ab5Ecko5Q993oyxi+ernU/HBmvW6XZHKwub3TFXzUJBMeiCMVUtRdlEEteG32ydHcX2F+gKjLRQNE0hXicqUERyQ65ceCJlks+pgpCsvu9snR4MniKTfolZrrK4b8BRQ1S7OEk32qZ9ldOcjpVCruEyz8PxEGuAVU7J817tn6QjZdA5EBWg3RXnxZAcqyyNtFd1KK6hMfvUmQkgAeyG8UGP8XP9vmf8bqJnYAPhwCAavCcc6SHM72MF8WIOb5Lbgw39toFwNgPJAZUCWBRA7In2vP9Z1WC7HK3bcRmdIjZVAs2N55yFsQHOw6DO0sJwjmFyxgsG92K0hZ4rftRi2eRkq8JB6ZliFgUfjUlZrc8jTMB0pSDp2zzZaK/tj1lKFZ72f/jeS08B8g+34wNfhvfH8BW4fLkne2YuUKV9sPfaCPLUzN3odyVRLrpFetrwabBR7F/fg5N6VzpsxbUguQNXDBURrHlUo=
skip_existing: true
on:
branch: master