forked from ladybug-tools/uwg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (44 loc) · 1.06 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
language: python
python:
- "2.7"
- "3.6"
- "3.7"
install:
- pip install -r dev-requirements.txt
- pip install -r requirements.txt
script:
- python -m pytest --cov=. tests/
after_success:
- coverage report
- coveralls
jobs:
include:
- stage: deploy
if: branch = master AND (NOT type IN (pull_request))
before_install:
- nvm install lts/* --latest-npm
python:
- "3.7"
install:
- pip install -r dev-requirements.txt
- pip install -r requirements.txt
- npm install @semantic-release/exec
script:
- git config --global user.email "releases@ladybug.tools"
- git config --global user.name "ladybugbot"
- npx semantic-release
- stage: docs
if: branch = master AND (NOT type IN (pull_request))
python:
- "3.7"
script:
- sphinx-apidoc -f -e -d 4 -o ./docs ./uwg
- sphinx-build -b html ./docs ./docs/_build/docs
deploy:
provider: pages
skip_cleanup: true
github-token: $GH_TOKEN
keep-history: false
local_dir: docs/_build/
on:
branch: master