Migrate to Woodpecker syntax
continuous-integration/drone the build failed Details

This commit is contained in:
Olivier 'reivilibre' 2021-09-04 12:35:29 +01:00
parent cf3f881b85
commit fe4a041573
1 changed files with 7 additions and 17 deletions

View File

@ -1,15 +1,6 @@
kind: pipeline
type: docker
name: default
platform: linux/arm64
platform:
os: linux
arch: arm64
image_pull_secrets:
- dockerconfig # using docker login, generate this file and add it as a secret.
steps:
pipeline:
# - name: restore cache
# image: docker.bics.ga/reivilibre/custom_drone_cache
# settings:
@ -19,14 +10,14 @@ steps:
# mount:
# - 'vendor'
- name: unit tests
unitTests:
image: rust:1.54.0-slim
commands:
- apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libsqlite3-dev
- cargo build --all
- cargo test --all
- name: test suite
testSuite:
image: rust:1.54.0-slim-bullseye
commands:
- apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libsqlite3-dev python3.9 python3.9-venv postgresql postgresql-client
@ -40,14 +31,13 @@ steps:
- ./testsuite/.venv/bin/pip install -e testsuite -e datman-helper-postgres
- cd testsuite && TEST_POSTGRES=$(hostname),testsuitedb,root ./.venv/bin/green
- name: deploy manual
deployManual:
image: rust:1.54.0-slim
when:
branch:
- develop
environment:
DEPLOY_SSH_KEY:
from_secret: DEPLOY_SSH_KEY
secrets:
- deploy_ssh_key
commands: # warning! Doesn't seem to like hashed known_hosts...
- cargo install -q mdbook
- apt-get -qq update && apt-get -yqq install rsync ssh