Cowsay.jl/.woodpecker.yml
millironx 90af33bec8
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Update '.woodpecker.yml'
2023-02-20 15:20:30 +00:00

46 lines
No EOL
1.4 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}-alpine3.17
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
- ssh-keyscan -t rsa $${DOCS_REMOTE_SERVER} >> $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}"