Skip to content

Commit

Permalink
woodpecker-ci requires 'steps:'
Browse files Browse the repository at this point in the history
  • Loading branch information
bjodah committed Mar 29, 2024
1 parent 1455ccf commit ba259f4
Showing 1 changed file with 34 additions and 46 deletions.
80 changes: 34 additions & 46 deletions .woodpecker.yaml
@@ -1,16 +1,16 @@
pipeline:
restore-cache:
image: drillster/drone-volume-cache
restore: true
mount:
- ./cache-ci/pyusrb
- ./cache-ci/conda_packages
- ./cache-ci/pip_cache
volumes:
- /tmp/cache:/cache
ttl: 90 # liftetime in days
steps:
# restore-cache:
# image: drillster/drone-volume-cache
# restore: true
# mount:
# - ./cache-ci/pyusrb
# - ./cache-ci/conda_packages
# - ./cache-ci/pip_cache
# volumes:
# - /tmp/cache:/cache
# ttl: 90 # liftetime in days

install:
- install:
image: bjodah/bjodahimg20dot:21.8.a
environment:
- CC=gcc-11
Expand All @@ -33,7 +33,7 @@ pipeline:
- mkdir -p deploy/public_html/branches/${DRONE_BRANCH}
- cp dist/chempy-* deploy/public_html/branches/${DRONE_BRANCH}/

test-suite:
- test-suite:
image: bjodah/bjodahimg20dot:21.8.a
group: testing
environment:
Expand Down Expand Up @@ -62,7 +62,7 @@ pipeline:
- bash -c "source /tmp/test_sdist/bin/activate; pip install --cache-dir $CACHE_ROOT/pip_cache file://$(realpath $(eval ls chempy-*.tar.gz))#chempy[all] pytest; pytest --pyargs chempy"
- bash -c "source /tmp/test_git_archive/bin/activate; pip install --cache-dir $CACHE_ROOT/pip_cache file://$(realpath chempy-head.zip)#chempy[all] pytest; pytest --pyargs chempy"

render-notebooks:
- render-notebooks:
image: bjodah/bjodahimg20dot:21.8.a
group: testing
environment:
Expand All @@ -79,20 +79,9 @@ pipeline:
- ./scripts/render_notebooks.sh
- ./.ci/grep-for-binary-data.sh
- mv index.html index.ipynb.html
# - (cd examples/; for f in bokeh_*.py; do python3 -m bokeh html $f; done)
- cp -r index.* examples/ "deploy/public_html/branches/${DRONE_BRANCH}"

# conda-recipe:
# image: bjodah/bjodahimg20dot:21.8.a
# group: testing
# commands:
# - export CONDA_PKGS_DIRS=$(pwd)/cache-ci/conda_packages
# - git fetch -tq
# - PATH=/opt/miniconda3/bin:$PATH conda config --add channels bjodah # sym, pyodesys, pyneqsys
# - PATH=/opt/miniconda3/bin:$PATH conda build --output-folder "deploy/public_html/branches/${DRONE_BRANCH}" conda-recipe
# - (cd $CONDA_PKGS_DIRS; find . -maxdepth 1 -type d -not -path . -not -path .. | xargs rm -r)

compile-documentation:
- compile-documentation:
image: bjodah/bjodahimg20dot:21.8.a
environment:
- CHEMPY_DEPRECATION_FILTER=ignore
Expand All @@ -106,24 +95,23 @@ pipeline:
- cp LICENSE doc/_build/html/
- cp -r doc/_build/html/ deploy/public_html/branches/${DRONE_BRANCH}

rebuild-cache:
image: drillster/drone-volume-cache
rebuild: true
mount:
# - ./cache-ci/sund-3.2.1
- ./cache-ci/pyusrb
- ./cache-ci/conda_packages
- ./cache-ci/pip_cache
volumes:
- /tmp/cache:/cache
# rebuild-cache:
# image: drillster/drone-volume-cache
# rebuild: true
# mount:
# - ./cache-ci/pyusrb
# - ./cache-ci/conda_packages
# - ./cache-ci/pip_cache
# volumes:
# - /tmp/cache:/cache

deploy:
image: drillster/drone-rsync
when:
event: [push]
hosts: [ "hera.physchem.kth.se" ]
port: 22
user: chempy
secrets: [ rsync_key ] # secret only set fro event "push" not "pull_request"
source: ./deploy/public_html
target: ~/
# deploy:
# image: drillster/drone-rsync
# when:
# event: [push]
# hosts: [ "hera.physchem.kth.se" ]
# port: 22
# user: chempy
# secrets: [ rsync_key ] # secret only set fro event "push" not "pull_request"
# source: ./deploy/public_html
# target: ~/

0 comments on commit ba259f4

Please sign in to comment.