forked from tensorx/tensorx
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
40 lines (32 loc) · 782 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
30
31
32
33
34
35
36
37
38
39
language: python
python:
- '3.8'
before_install:
- pip install poetry
install:
- poetry install
- poetry run pip install tensorflow
- poetry run pip install mkdocs
- poetry run pip install mkdocs-material
- poetry run pip install mkgendocs
script:
- poetry run python -m unittest
- poetry run gendocs -c docs/gendocs.yaml
- poetry run mkdocs build
before_deploy:
- poetry build # generate dist
deploy:
- provider: pages
skip_cleanup: true # prevent Travis CI from resetting your working directory
local_dir: site
github_token: $GITHUB_TOKEN
target_branch: gh-pages
keep_history: false
fqdn: tensorx.org
on:
branch: master
- provider: pypi
username: "__token__"
password: $PYPI_TOKEN
on:
tags: true