File tree 3 files changed +16
-32
lines changed
3 files changed +16
-32
lines changed Original file line number Diff line number Diff line change 3
3
" @semantic-release/commit-analyzer" ,
4
4
" @semantic-release/release-notes-generator" ,
5
5
" @semantic-release/github" ,
6
- [
7
- " @semantic-release/exec" ,
8
- {
9
- "publishCmd" : " bash deploy.sh ${nextRelease.version}"
10
- }
11
- ]
6
+ [" @semantic-release/exec" , {
7
+ "publishCmd" : " bash deploy.sh ${nextRelease.version}"
8
+ }]
12
9
]
13
10
}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ language: python
3
3
python :
4
4
- " 2.7"
5
5
- " 3.6"
6
+ - " 3.7"
6
7
7
8
install :
8
9
- pip install -r dev-requirements.txt
@@ -19,16 +20,22 @@ jobs:
19
20
- stage : deploy
20
21
if : branch = master AND (NOT type IN (pull_request))
21
22
before_install :
22
- - npm i -g npm@6.6.0
23
+ - nvm install lts/* --latest- npm
23
24
python :
24
- - " 3.6 "
25
+ - " 3.7 "
25
26
install :
26
27
- pip install -r dev-requirements.txt
28
+ - pip install -r requirements.txt
27
29
- npm install @semantic-release/exec
28
30
script :
29
31
-
git config --global user.email "[email protected] "
30
32
- git config --global user.name "ladybugbot"
31
33
- npx semantic-release
34
+ - stage : docs
35
+ if : branch = master AND (NOT type IN (pull_request))
36
+ script :
37
+ - sphinx-apidoc -f -e -d 4 -o ./docs ./honeybee_radiance_folder
38
+ - sphinx-build -b html ./docs ./docs/_build/docs
32
39
deploy :
33
40
provider : pages
34
41
skip_cleanup : true
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- deploy_to_pypi () {
4
- echo " Building distribution"
5
- python setup.py sdist bdist_wheel
6
- echo " Pushing new version to PyPi"
7
- twine upload dist/* -u $PYPI_USERNAME -p $PYPI_PASSWORD
8
- }
9
-
10
- build_docs () {
11
- echo " Building documentation files"
12
- sphinx-apidoc -f -e -d 4 -o ./docs ./honeybee_radiance_folder
13
- sphinx-build -b html ./docs ./docs/_build/docs -D release=$1 -D version=$1
14
- }
15
-
16
-
17
- if [ -n " $1 " ]
18
- then
19
- NEXT_RELEASE_VERSION=$1
20
- else
21
- echo " A release version must be supplied"
22
- exit 1
23
- fi
24
-
25
- deploy_to_pypi
26
- build_docs $NEXT_RELEASE_VERSION
3
+ echo " Building distribution"
4
+ python setup.py sdist bdist_wheel
5
+ echo " Pushing new version to PyPi"
6
+ twine upload dist/* -u $PYPI_USERNAME -p $PYPI_PASSWORD
You can’t perform that action at this time.
0 commit comments