Cowsay.jl/.woodpecker.yml
millironx 15748f56cb
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Update '.woodpecker.yml'
2023-02-20 15:07:17 +00:00

46 lines
No EOL
1.3 KiB
YAML

matrix:
JULIA_VERSION:
- "1.0"
- "1.6"
- "1"
- "rc"
pipeline:
test:
group: ci
image: julia:${JULIA_VERSION}
pull: true
when:
event: [pull_request, push]
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:${JULIA_VERSION}
when:
event: push
branch: master
matrix:
JULIA_VERSION: "1"
secrets:
- DOCS_REMOTE_USER
- DOCS_REMOTE_SERVER
- DOCS_REMOTE_DIR
- DOCS_REMOTE_KEY
- DOCS_KEY
- DOCS_PUBKEY
commands:
- apk add git openssh-client rsync
- mkdir -p $HOME/.ssh
- echo "$${DOCS_KEY}" >> $HOME/.ssh/id_rsa
- echo "$${DOCS_REMOTE_KEY}}" >> $HOME/.ssh/known_hosts
- 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}"