Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
20b371b
gh-page generate minor tuning
sasikala-binary Nov 24, 2021
711ecd2
build docs using ci steps
sasikala-binary Nov 29, 2021
cf5f2d5
build docs using ci steps
sasikala-binary Nov 29, 2021
7d32ec1
gh-page generate
sasikala-binary Nov 29, 2021
4c0d875
build docs using ci steps
sasikala-binary Nov 29, 2021
fe59607
build docs using ci steps
sasikala-binary Nov 29, 2021
3682bec
build docs using ci steps
sasikala-binary Nov 29, 2021
9549537
deploy gh-pages using ci steps
sasikala-binary Nov 29, 2021
ed66cc2
deploy gh-pages using ci steps
sasikala-binary Nov 29, 2021
ee3be5e
deploy gh-pages using ci steps
sasikala-binary Nov 29, 2021
8de35df
deploy gh-pages using ci steps
sasikala-binary Nov 29, 2021
5d3c39c
deploy gh-pages using ci steps
sasikala-binary Dec 7, 2021
09fdd15
deploy gh-pages using ci steps
sasikala-binary Dec 7, 2021
2b53906
retrigger
sasikala-binary Dec 7, 2021
ac743a3
retrigger
sasikala-binary Dec 7, 2021
ce3286b
add ssh keys to another job
shantanu-deriv Dec 8, 2021
6e99288
using circleci/node:14.18.1-bullseye
shantanu-deriv Dec 8, 2021
3da9f13
sudo
shantanu-deriv Dec 8, 2021
6155bbb
Update config.yml
shantanu-deriv Dec 8, 2021
be90c31
Update config.yml
shantanu-deriv Dec 8, 2021
764c7ca
Update config.yml
shantanu-deriv Dec 8, 2021
7f8b4d5
Update config.yml
shantanu-deriv Dec 8, 2021
94b8e2d
remove sudo for yes
shantanu-deriv Dec 9, 2021
2fe1952
npx
shantanu-deriv Dec 9, 2021
51a5af1
remove sudo
shantanu-deriv Dec 9, 2021
17e9e50
add |
shantanu-deriv Dec 9, 2021
1f9d01f
replace --yes
shantanu-deriv Dec 9, 2021
5848c76
correction
shantanu-deriv Dec 9, 2021
8c810d4
remove yes
shantanu-deriv Dec 9, 2021
07df170
gh-pages name conflict
sasikala-binary Dec 9, 2021
d19c428
adding back gh-pages make target
shantanu-deriv Dec 10, 2021
b642885
use makefile
shantanu-deriv Dec 10, 2021
e316183
use build-deploy
shantanu-deriv Dec 10, 2021
28dbe3b
using Make gh-pages command
sasikala-binary Dec 10, 2021
42f87b9
gh-pages to only push
shantanu-deriv Dec 10, 2021
2c03aea
ssh key
shantanu-deriv Dec 10, 2021
4d14b53
use ssh key
shantanu-deriv Dec 10, 2021
e16c57c
using Make gh-pages command
sasikala-binary Dec 10, 2021
3dc74aa
git config
shantanu-deriv Dec 10, 2021
781cad1
using Make gh-pages command
sasikala-binary Dec 10, 2021
72b54fa
conflict fix
sasikala-binary Dec 10, 2021
4179054
using Make gh-pages command
sasikala-binary Dec 10, 2021
17a8c48
use deploy key
shantanu-deriv Dec 10, 2021
080ec4c
use ssh key fingerprint
shantanu-deriv Dec 10, 2021
d6ac810
debug
sasikalachinnasamy Jan 4, 2022
c07caac
try with refreshed keys
sasikalachinnasamy Jan 6, 2022
e4f81d3
- Run tests
sasikalachinnasamy Jan 6, 2022
1306163
Update config.yml
shantanu-deriv Jan 10, 2022
ee8fa62
Update config.yml
shantanu-deriv Jan 10, 2022
8792f71
Update Makefile
sasikala-binary Jan 10, 2022
648cdad
Update Makefile
sasikala-binary Jan 10, 2022
62c351d
Update Makefile
sasikala-binary Jan 12, 2022
803cd8c
Update config.yml
sasikala-binary Jan 12, 2022
5f922ed
Update config.yml
sasikala-binary Jan 12, 2022
622b794
use ed25519 key
shantanu-deriv Jan 12, 2022
1e7c901
Update config.yml
sasikala-binary Jan 12, 2022
a9816aa
Update config.yml
sasikala-binary Jan 12, 2022
3629efd
Update config.yml
sasikala-binary Jan 12, 2022
f9630d9
example link fix
sasikalachinnasamy Jan 12, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 39 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
version: 2
jobs:
build:
test:
docker:
- image: circleci/python:3.9.6
environment: # environment variables for primary container
PIPENV_VENV_IN_PROJECT: true
steps: # steps that comprise the `build` job
- add_ssh_keys:
fingerprints:
- "c8:f7:fc:a0:0d:2c:43:93:e3:c7:b6:cf:16:93:98:e1"
- checkout # check out source code to working directory
- run: sudo chown -R circleci:circleci /usr/local/bin
- restore_cache:
Expand All @@ -24,3 +27,38 @@ jobs:
- run:
command: |
make coverage
docs-build-deploy:
docker:
- image: circleci/python:3.9.6
environment: # environment variables for primary container
PIPENV_VENV_IN_PROJECT: true
steps:
- add_ssh_keys:
fingerprints:
- "c8:f7:fc:a0:0d:2c:43:93:e3:c7:b6:cf:16:93:98:e1"
- checkout
- run: sudo chown -R circleci:circleci /usr/local/bin
- restore_cache:
key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
- run:
command: |
make setup
- save_cache:
key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
paths:
- "venv"
- run:
command: |
git config --local user.email "sysadmin@binary.com"
git config --local user.name "gh-pages deploy bot"
make gh-pages
workflows:
version: 2
build:
jobs:
- test
- docs-build-deploy:
filters:
branches:
only:
- master
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ setup:
test:
pipenv run python setup.py pytest
doc:
pdoc deriv_api --force --html -o docs/html --template-dir docs/templates
gh-pages:
pdoc deriv_api --force --html -o /tmp/python-deriv-api-docs --template-dir docs/templates && git add . && git stash && git checkout gh-pages && cp -r /tmp/python-deriv-api-docs/deriv_api/* . && git add . && git commit -m 'Update docs' && git push && git checkout -
pipenv run pdoc deriv_api --force --html -o docs/html --template-dir docs/templates
build:
pip3 install build && python3 -m build
coverage:
pipenv run coverage run --source deriv_api -m pytest && pipenv run coverage report -m
gh-pages:
pipenv run pdoc deriv_api --force --html -o /tmp/python-deriv-api-docs --template-dir docs/templates && git add -A . && git stash && git checkout gh-pages && cp -r /tmp/python-deriv-api-docs/deriv_api/* . && git add -A . && git commit -m 'Update docs' && git push origin gh-pages && git checkout -
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ If you pass the connection it's up to you to reconnect in case the connection dr
#### API reference
The complete API reference is hosted [here](https://binary-com.github.io/python-deriv-api/)

Examples [here](https://github.com/binary-com/python-deriv-api/examples)
Examples [here](https://github.com/binary-com/python-deriv-api/tree/master/examples)

# Development
```
Expand Down