forked from hackingthemarkets/vectorbt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
91 lines (89 loc) · 3.34 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
test: &test
stage: test
language: python
install:
- ./scripts/install-talib.sh
- pip install .[full]
script:
- export NUMBA_BOUNDSCHECK=1
- pytest tests/
- export NUMBA_DISABLE_JIT=1
- pytest tests/
jobs:
include:
- <<: *test
python: "3.6"
- <<: *test
python: "3.7"
- <<: *test
python: "3.8"
- <<: *test
python: "3.9"
- stage: test-cov
language: python
python: "3.6"
install:
- ./scripts/install-talib.sh
- pip install .[full,cov]
script:
- export NUMBA_BOUNDSCHECK=1
- export NUMBA_DISABLE_JIT=1
- pytest --cov=vectorbt tests/
after_success:
- codecov
- stage: deploy-pypi
language: python
python: "3.6"
script: skip
deploy:
- provider: pypi
skip_existing: true
username: "__token__"
password:
secure: k+1Rs3iUivAanltzMx+SrMoXOv6dvsY2kxzCbLUN2vD3umaM2b6UECbnGnYEb3Y0Mmj0mxu37k9znvOSvbLsXYTZqk7KBFy9XPI+b6tSj7u7O+GlTAZta6VixnsZWlyuwUIbPTcNd82HqfLbhU/pOo9ZNzWDhg37LASKrIz//orJoJjYGfAEDU9u8BA7k7pcCcGp5N1a7O5Ab5Ecko5Q993oyxi+ernU/HBmvW6XZHKwub3TFXzUJBMeiCMVUtRdlEEteG32ydHcX2F+gKjLRQNE0hXicqUERyQ65ceCJlks+pgpCsvu9snR4MniKTfolZrrK4b8BRQ1S7OEk32qZ9ldOcjpVCruEyz8PxEGuAVU7J817tn6QjZdA5EBWg3RXnxZAcqyyNtFd1KK6hMfvUmQkgAeyG8UGP8XP9vmf8bqJnYAPhwCAavCcc6SHM72MF8WIOb5Lbgw39toFwNgPJAZUCWBRA7In2vP9Z1WC7HK3bcRmdIjZVAs2N55yFsQHOw6DO0sJwjmFyxgsG92K0hZ4rftRi2eRkq8JB6ZliFgUfjUlZrc8jTMB0pSDp2zzZaK/tj1lKFZ72f/jeS08B8g+34wNfhvfH8BW4fLkne2YuUKV9sPfaCPLUzN3odyVRLrpFetrwabBR7F/fg5N6VzpsxbUguQNXDBURrHlUo=
on:
branch: master
- stage: deploy-pages
language: python
python: "3.6"
install:
- ./scripts/install-talib.sh
- pip install .[full,docs]
script:
- pdoc --html --force --output-dir docs vectorbt --template-dir docs/templates
- rm -rf !(docs)
- mv docs/vectorbt/* docs
- rmdir docs/vectorbt
- mv docs/site/* .
- touch CNAME
- echo 'vectorbt.dev' > CNAME
- touch .nojekyll
deploy:
- provider: pages
skip_cleanup: true
github_token: "$GITHUB_TOKEN"
keep_history: true
on:
branch: master
- stage: deploy-docker
language: ruby
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build -t polakowo/vectorbt . --build-arg FULL=
- ./scripts/docker-push.sh "polakowo/vectorbt" "$(cat vectorbt/_version.py | cut -d '"' -f 2)"
- docker build -t polakowo/vectorbt-full . --build-arg FULL=yes --build-arg TEST=yes
- ./scripts/docker-push.sh "polakowo/vectorbt-full" "$(cat vectorbt/_version.py | cut -d '"' -f 2)"
stages:
- name: test
if: (type = pull_request) OR (commit_message =~ /(\[ci test\]|\[ci deploy\])/)
- name: test-cov
if: (type = pull_request) OR (commit_message =~ /(\[ci test\]|\[ci test-cov\]|\[ci deploy\])/)
- name: deploy-pypi
if: (type != pull_request) AND (commit_message =~ /(\[ci deploy-pypi\]|\[ci deploy\])/)
- name: deploy-pages
if: (type != pull_request) AND (commit_message =~ /(\[ci deploy-pages\]|\[ci deploy\])/)
- name: deploy-docker
if: (type != pull_request) AND (commit_message =~ /(\[ci deploy-docker\]|\[ci deploy\])/)
branches:
only:
- master