Migrate to Woodpecker syntax
continuous-integration/drone the build failed
Details
continuous-integration/drone the build failed
Details
This commit is contained in:
parent
cf3f881b85
commit
fe4a041573
|
@ -1,15 +1,6 @@
|
||||||
kind: pipeline
|
platform: linux/arm64
|
||||||
type: docker
|
|
||||||
name: default
|
|
||||||
|
|
||||||
platform:
|
pipeline:
|
||||||
os: linux
|
|
||||||
arch: arm64
|
|
||||||
|
|
||||||
image_pull_secrets:
|
|
||||||
- dockerconfig # using docker login, generate this file and add it as a secret.
|
|
||||||
|
|
||||||
steps:
|
|
||||||
# - name: restore cache
|
# - name: restore cache
|
||||||
# image: docker.bics.ga/reivilibre/custom_drone_cache
|
# image: docker.bics.ga/reivilibre/custom_drone_cache
|
||||||
# settings:
|
# settings:
|
||||||
|
@ -19,14 +10,14 @@ steps:
|
||||||
# mount:
|
# mount:
|
||||||
# - 'vendor'
|
# - 'vendor'
|
||||||
|
|
||||||
- name: unit tests
|
unitTests:
|
||||||
image: rust:1.54.0-slim
|
image: rust:1.54.0-slim
|
||||||
commands:
|
commands:
|
||||||
- apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libsqlite3-dev
|
- apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libsqlite3-dev
|
||||||
- cargo build --all
|
- cargo build --all
|
||||||
- cargo test --all
|
- cargo test --all
|
||||||
|
|
||||||
- name: test suite
|
testSuite:
|
||||||
image: rust:1.54.0-slim-bullseye
|
image: rust:1.54.0-slim-bullseye
|
||||||
commands:
|
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
|
- 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
|
- ./testsuite/.venv/bin/pip install -e testsuite -e datman-helper-postgres
|
||||||
- cd testsuite && TEST_POSTGRES=$(hostname),testsuitedb,root ./.venv/bin/green
|
- cd testsuite && TEST_POSTGRES=$(hostname),testsuitedb,root ./.venv/bin/green
|
||||||
|
|
||||||
- name: deploy manual
|
deployManual:
|
||||||
image: rust:1.54.0-slim
|
image: rust:1.54.0-slim
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- develop
|
- develop
|
||||||
environment:
|
secrets:
|
||||||
DEPLOY_SSH_KEY:
|
- deploy_ssh_key
|
||||||
from_secret: DEPLOY_SSH_KEY
|
|
||||||
commands: # warning! Doesn't seem to like hashed known_hosts...
|
commands: # warning! Doesn't seem to like hashed known_hosts...
|
||||||
- cargo install -q mdbook
|
- cargo install -q mdbook
|
||||||
- apt-get -qq update && apt-get -yqq install rsync ssh
|
- apt-get -qq update && apt-get -yqq install rsync ssh
|
Loading…
Reference in New Issue