Skip to content

Commit

Permalink
[CI] Add drone CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Herklos committed May 13, 2020
1 parent 93fada5 commit d7bcb88
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
41 changes: 41 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
kind: pipeline
name: tests-python3.7-arm64

platform:
os: linux
arch: arm64

steps:
- name: tests
image: python:3.7
commands:
- pip install --prefer-binary -r dev_requirements.txt -r requirements.txt
- python3 setup.py install
- pytest --cov=. --cov-config=.coveragerc --durations=0 -rw tests

---
kind: pipeline
name: deploy-python3.7-arm64

workspace:
base: /project

platform:
os: linux
arch: arm64

steps:
- name: pypi_publish
pull: always
image: drakkarsoftware/pypi-builder:manylinux-aarch64
environment:
PYPI_USERNAME:
from_secret: pypi_username
PYPI_PASSWORD:
from_secret: pypi_password
when:
event:
- tag
repo:
- Drakkar-Software/OctoBot-Backtesting
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
after_success:
- if [ $TRAVIS_PULL_REQUEST == "false" ]; then coveralls; fi

- name: "Linux - Python 3.8-dev - Installed"
- name: "Linux amd64 - Python 3.8-dev - Installed"
stage: test
os: linux
language: python
Expand All @@ -51,14 +51,14 @@ jobs:
branch: $DEPLOY_BRANCH
tags: true
- provider: script
script: docker run -it -e PYPI_USERNAME=$PYPI_USERNAME -e PYPI_PASSWORD=$PYPI_PASSWORD -v $(pwd):/project drakkarsoftware/octobot-pypi-deploy:i686 "i686" "cp37-cp37m" "cp37"
script: docker run -it -e PYPI_USERNAME=$PYPI_USERNAME -e PYPI_PASSWORD=$PYPI_PASSWORD -v $(pwd):/project drakkarsoftware/pypi-builder:manylinux-i686
cleanup: true
on:
repo: "$GH_REPO"
branch: "$DEPLOY_BRANCH"
tags: true
- provider: script
script: docker run -it -e PYPI_USERNAME=$PYPI_USERNAME -e PYPI_PASSWORD=$PYPI_PASSWORD -v $(pwd):/project drakkarsoftware/octobot-pypi-deploy:x86_64 "x86_64" "cp37-cp37m" "cp37"
script: docker run -it -e PYPI_USERNAME=$PYPI_USERNAME -e PYPI_PASSWORD=$PYPI_PASSWORD -v $(pwd):/project drakkarsoftware/pypi-builder:manylinux-x86_64
cleanup: true
on:
repo: "$GH_REPO"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
[![PyPI](https://img.shields.io/pypi/v/OctoBot-Backtesting.svg)](https://pypi.python.org/pypi/OctoBot-Backtesting/)
[![Build Status](https://api.travis-ci.com/Drakkar-Software/OctoBot-Backtesting.svg?branch=master)](https://travis-ci.com/Drakkar-Software/OctoBot-Backtesting)
[![Build Status](https://dev.azure.com/drakkarsoftware/OctoBot-Backtesting/_apis/build/status/Drakkar-Software.OctoBot-Backtesting?branchName=master)](https://dev.azure.com/drakkarsoftware/OctoBot-Backtesting/_build/latest?definitionId=4&branchName=master)
[![Build Status](https://cloud.drone.io/api/badges/Drakkar-Software/OctoBot-Backtesting/status.svg)](https://cloud.drone.io/Drakkar-Software/OctoBot-Backtesting)

OctoBot backtesting engine package.

0 comments on commit d7bcb88

Please sign in to comment.