-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
63 lines (54 loc) · 2.66 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
language: python
python:
- "3.6"
- "3.7"
dist: xenial
env:
global:
- TAG_BUILD=dev$TRAVIS_BUILD_NUMBER
before_install:
- if [[ -n $TRAVIS_TAG ]]; then unset TAG_BUILD TWINE_REPOSITORY_URL; fi
- lsb_release -a
- env | sort
install:
- python setup.py egg_info -b "$TAG_BUILD" sdist bdist_wheel
- pip install dist/*.whl
- pip install flake8 docutils pygments pytest twine
- pip install git+https://github.com/hibtc/hit_acs@master
- git clone git://github.com/hibtc/sample_model
script:
- twine check dist/*
- flake8
- pytest tests
addons:
apt:
packages:
- graphviz
jobs:
include:
- stage: deploy
name: Upload Documentation
install:
- pip install . sphinx==3.1.2 sphinx_rtd_theme autodocsumm
script: make -C docs html
deploy:
- provider: pages
local_dir: docs/_build/html
skip-cleanup: true
github-token: $GITHUB_TOKEN
on:
branch: master
env:
# GITHUB_TOKEN
- secure: "Pdt8rdFHAwQ20jFF0Q3p0SWxbx+B0R5p55Yh3ujDF6UvWdMyTRKzOQs3giLkva5nZBmt9fb0mDa0fUSFCThgJRqd9E2ZCfU2QhD2DlCBJ+wA3EweaNosoiBWQwfeKFcJxtL6SkIsZxgZEx6XZrd3lVsqnFRX3W7fI0X6fIfBj4x+kPR/9AyUtsb2ls+6GJUk9OZxIpgsHhlBoXRJQ1KiS2o2mdBZGYt+Fl+K2RQzThqkFpc3WsubLeGszllUtvIzB3v1PzZGhLOeBVmH/ut6LT7QQJOwMT4YXKcE/0fIBzm33hHj5pphgnTZoX22/kFoLDD9N7vNs8zh3QoUj8f+obLOFNRZQk48MzBaukDwkObANE4tlVhh8Vr1wsX0UaVFrXoFLhMuTQ1BX4706UmEYLaUYxl4e607Lp9PTWStuFxdYnxoHRyHEFuCH9cjwin/YWZ9CoOIKUy0qwPR6YUU4VWd1LKbY6nisuHB541LSc9BoFZ144zz5+vVkZP9hkBSwFWI7FvOW7oBlDZniw5Ri37PmQOP4ikqlFEm9lut4LjXUEV0Cn3482mmPY3GT2uw2teHi6OlXq0LugNK7XD5DE0I67VdEj0pcNHFJ4jBVjlpHKJqWfoMHIs4jsW4XSJwQyz1SBcE3xJTcVb2mG9+FtJcwHmEeTt/hmoiWdg7REA="
- stage: deploy
name: Upload release to PyPI
if: branch = test-release OR tag IS present
script: twine upload dist/*
env:
- TWINE_REPOSITORY_URL=https://test.pypi.org/legacy/
- TWINE_USERNAME=hibtc-deploy
# TWINE_PASSWORD:
- secure: "bmJ65gwbUZVJ8xpVPWGQXZK0cuOQWrF/zQQSFsFBoL4ZZMePWFFbXMMajPqgzdw8dA3KDKrJEWzQjfw6HE4Pdhne0CJMW0cODgBEEjZ+iRnMhHRaZAKiP+Jih8O3jgzC7sKWkW0BbSQOH3ml1i3oUAEoydxtVSpqgIgH4H+R0h1kh0aFoQ2WG5sLw+k+2CLGfcnYLyFHp+PfGvsEU0ADO1SX2BRTGrqi5/vup3rcovP8cFTWrgS/SpvNO7JdWMN3HMe63HmuY4HGx9YQerI0oczqCrJevplmkromW0qwkfZXmCt3pLnk+OS8qJ9v+m3PQuNql8AODGZNbdxuJJQKchKo7J15LMA5pUDvqR0GhSMeL7tPnI1zW6GOGrJtKFrC1hRMOc7hH+lprv8DS6IFMabK/4o6bOB+MFAxWge3dszJw9AZwzIXgSjkUWJe2zCXQBgXGXev0QnFUJRUe6eVsr2lOxCQxLc3Kirgfj4oqvlOGibCdCTnXiq1FPe87wiPiAxTP8pCbIhbpJcfi60JecnhW0WoWp1fJJoVj/LNi5oCzEcHtetvOS+GeqLr4EUSXbvco3djGP0YnOTL+eSuGOdvCMF2o/Q71spC3zk7M8QUzf0DyMaEuxQlYY5uWH0fCi5HMJr6UryIhmwnj4kKagHU/oY/OfjQEnvDRaHp6V8="
cache:
pip: true