Skip to content

Commit

Permalink
[CI] Add drone
Browse files Browse the repository at this point in the history
  • Loading branch information
Herklos committed May 12, 2020
1 parent 4e4e553 commit 732d513
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 3 deletions.
61 changes: 61 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
kind: pipeline
name: tests-python3.7-arm32

platform:
os: linux
arch: arm

steps:
- name: tests
image: python:3.7
commands:
- apt-get update
- apt-get install -y --no-install-recommends python3-numpy
- 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: tests-python3.7-arm64

platform:
os: linux
arch: arm64

steps:
- name: tests
image: python:3.7
commands:
- apt-get update
- apt-get install -y --no-install-recommends python3-numpy
- 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-Commons
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,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
python: 3.8-dev
Expand Down Expand Up @@ -67,14 +67,14 @@ deploy:
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

0 comments on commit 732d513

Please sign in to comment.