A seismology toolkit for Python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

265 lines
5.2 KiB

kind: pipeline
type: docker
name: flake8
steps:
- name: flake8
image: pyrocko-nest
pull: never
commands:
- flake8 src test examples setup.py
---
kind: pipeline
type: docker
name: docs
steps:
- name: build
image: pyrocko-docs
pull: never
commands:
- python3 setup.py install && cd doc && make html
- name: stage
image: pyrocko-aux
pull: never
commands:
- maintenance/drone-rsync.sh doc/build/html/ ${DRONE_COMMIT}/docs/
environment:
RSYNC_HOST:
from_secret: rsync-host
RSYNC_USER:
from_secret: rsync-user
RSYNC_KEY:
from_secret: rsync-key
---
kind: pipeline
type: docker
name: pip-wheels
trigger:
branch:
- candidate
- pip-wheels
steps:
- name: build-manylinux1_x86_64
image: quay.io/pypa/manylinux1_x86_64
commands:
- maintenance/pip/build_wheels.sh
environment:
PLAT: manylinux1_x86_64
- name: test-manylinux1_x86_64
image: pyrocko-nest
pull: never
commands:
- apt-get -y update
- apt-get -y install python3-pip
- pip3 install -r requirements-all.txt
- pip3 install -f wheels --no-index pyrocko
- xvfb-run -s '-screen 0 640x480x24' python3 -m nose test
- name: stage-manylinux1_x86_64
image: pyrocko-aux
pull: never
commands:
- maintenance/drone-rsync.sh wheels/ ${DRONE_COMMIT}/wheels/
environment:
RSYNC_HOST:
from_secret: rsync-host
RSYNC_USER:
from_secret: rsync-user
RSYNC_KEY:
from_secret: rsync-key
---
kind: pipeline
type: docker
name: tests-base
steps:
- name: tests-base
image: pyrocko-nest
pull: never
commands:
- python3 setup.py install -f
- pip3 install utm
- pip3 install git+https://github.com/pyrocko/kite
- pip3 install obspy
- python3 -m coverage run --parallel-mode -m nose test.base
- for x in .coverage.* ; do mv $x $${x#.} ; done
- name: stage
image: pyrocko-aux
pull: never
commands:
- maintenance/drone-rsync.sh coverage.* ${DRONE_COMMIT}/coverage/data/
environment:
RSYNC_HOST:
from_secret: rsync-host
RSYNC_USER:
from_secret: rsync-user
RSYNC_KEY:
from_secret: rsync-key
---
kind: pipeline
type: docker
name: tests-gf
steps:
- name: tests-gf
image: pyrocko-nest
pull: never
commands:
- python3 setup.py install -f
- pip3 install utm
- pip3 install git+https://github.com/pyrocko/kite
- pip3 install obspy
- python3 -m coverage run --parallel-mode -m nose test.gf
- for x in .coverage.* ; do mv $x $${x#.} ; done
- name: stage
image: pyrocko-aux
pull: never
commands:
- maintenance/drone-rsync.sh coverage.* ${DRONE_COMMIT}/coverage/data/
environment:
RSYNC_HOST:
from_secret: rsync-host
RSYNC_USER:
from_secret: rsync-user
RSYNC_KEY:
from_secret: rsync-key
---
kind: pipeline
type: docker
name: tests-examples
steps:
- name: tests-examples
image: pyrocko-nest
pull: never
commands:
- python3 setup.py install -f
- pip3 install utm
- pip3 install git+https://github.com/pyrocko/kite
- pip3 install obspy
- python3 -m coverage run --parallel-mode -m nose test.examples
- for x in .coverage.* ; do mv $x $${x#.} ; done
- name: stage
image: pyrocko-aux
pull: never
commands:
- maintenance/drone-rsync.sh coverage.* ${DRONE_COMMIT}/coverage/data/
environment:
RSYNC_HOST:
from_secret: rsync-host
RSYNC_USER:
from_secret: rsync-user
RSYNC_KEY:
from_secret: rsync-key
---
kind: pipeline
type: docker
name: tests-gui
steps:
- name: tests-gui
image: pyrocko-nest
pull: never
commands:
- python3 setup.py install -f
- pip3 install obspy
- xvfb-run -s '-screen 0 640x480x24' python3 -m coverage run --parallel-mode -m nose test.gui test.base.test_obspy_compat:ObsPyCompatTestCase.test_obspy_fiddle test.base.test_obspy_compat:ObsPyCompatTestCase.test_obspy_snuffle
- for x in .coverage.* ; do mv $x $${x#.} ; done
- name: stage
image: pyrocko-aux
pull: never
commands:
- maintenance/drone-rsync.sh coverage.* ${DRONE_COMMIT}/coverage/data/
environment:
RSYNC_HOST:
from_secret: rsync-host
RSYNC_USER:
from_secret: rsync-user
RSYNC_KEY:
from_secret: rsync-key
---
kind: pipeline
type: docker
name: coverage
depends_on:
- tests-base
- tests-gf
- tests-examples
- tests-gui
steps:
- name: build
image: pyrocko-nest
pull: never
commands:
- python3 setup.py install -f
- pip3 install utm
- pip3 install git+https://github.com/pyrocko/kite
- pip3 install obspy
- wget -r -nH --cut-dirs=2 --no-parent --reject="index.html*" https://data.pyrocko.org/builds/${DRONE_COMMIT}/coverage/data/
- python3 -m coverage combine coverage/data/coverage.*
- python3 -m coverage html
- name: stage
image: pyrocko-aux
pull: never
commands:
- maintenance/drone-rsync.sh htmlcov/ ${DRONE_COMMIT}/coverage/
environment:
RSYNC_HOST:
from_secret: rsync-host
RSYNC_USER:
from_secret: rsync-user
RSYNC_KEY:
from_secret: rsync-key
---
kind: pipeline
type: docker
name: publish
depends_on:
- coverage
- flake8
- docs
- pip-wheels
trigger:
status:
- success
- failure
steps:
- name: post
image: pyrocko-nest
pull: never
commands:
- maintenance/drone-matterpost.py
environment:
WEBHOOK:
from_secret: hive-webhook