Add .woodpecker.yml

This commit is contained in:
Thomas A. Christensen II 2023-02-05 14:11:23 -06:00
parent e1a1447918
commit ec7c5fe27c
Signed by: millironx
GPG key ID: 09335146883990B9

45
.woodpecker.yml Normal file
View file

@ -0,0 +1,45 @@
matrix:
JULIA_VERSION:
- "1.0"
- "1.6"
- "1"
- "rc"
pipeline:
test:
group: ci
image: julia:${JULIA_VERSION}
pull: true
when:
- event: pull_request
- event: push
branch: master
commands:
- julia --color=yes -e 'using Pkg; Pkg.activate(pwd()); Pkg.instantiate()'
- julia --color=yes -e 'using Pkg; Pkg.activate(pwd()); Pkg.test(;coverage=true)'
docs:
group: ci
image: julia:1-alpine3.17
when:
- event: push
branch: master
- event: manual
secrets:
- DOCS_REMOTE_USER
- DOCS_REMOTE_SERVER
- DOCS_REMOTE_DIR
- DOCS_KEY
- DOCS_PUBKEY
commands:
- apk add git openssh-client rsync
- mkdir -p $HOME/.ssh
- echo "${DOCS_KEY}" >> $HOME/.ssh/id_rsa
- chmod 0600 $HOME/.ssh/id_rsa
- git config --global user.email "woodpecker@millironx.com"
- git config --global user.name "woodpecker-bot"
- git config --global --add safe.directory /woodpecker/src
- julia --color=yes --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- julia --color=yes --project=docs docs/make.jl
- rsync -r --exclude .git docs/build/* ${DOCS_REMOTE_USER}@${DOCS_REMOTE_SERVER}:${DOCS_REMOTE_DIR}