try fixing CI #50

Merged
lx merged 1 commit from trinity-1686a/garage:try-fix-ci into dev-0.2 2021-03-18 18:07:58 +00:00

View file

@ -2,20 +2,9 @@ kind: pipeline
name: default name: default
workspace: workspace:
base: /drone base: /drone/garage
clone:
disable: true
steps: steps:
- name: clone
image: alpine/git
commands:
- mkdir -p cargo
- git clone $DRONE_GIT_HTTP_URL
- cd garage
- git checkout $DRONE_COMMIT
- name: restore-cache - name: restore-cache
image: meltwater/drone-cache:dev image: meltwater/drone-cache:dev
environment: environment:
@ -31,11 +20,11 @@ steps:
cache_key: '{{ .Repo.Name }}_{{ checksum "garage/Cargo.lock" }}_{{ arch }}_{{ os }}_gzip' cache_key: '{{ .Repo.Name }}_{{ checksum "garage/Cargo.lock" }}_{{ arch }}_{{ os }}_gzip'
region: garage region: garage
mount: mount:
- 'garage/target' - 'target'
- 'cargo/registry/index' - '/drone/cargo/registry/index'
- 'cargo/registry/cache' - '/drone/cargo/registry/cache'
- 'cargo/bin' - '/drone/cargo/bin'
- 'cargo/git/db' - '/drone/cargo/git/db'
path_style: true path_style: true
endpoint: https://garage.deuxfleurs.fr endpoint: https://garage.deuxfleurs.fr
@ -47,7 +36,6 @@ steps:
- apt-get update - apt-get update
- apt-get install --yes libsodium-dev - apt-get install --yes libsodium-dev
- pwd - pwd
- cd garage
- cargo build - cargo build
- name: cargo-test - name: cargo-test
@ -57,7 +45,6 @@ steps:
commands: commands:
- apt-get update - apt-get update
- apt-get install --yes libsodium-dev - apt-get install --yes libsodium-dev
- cd garage
- cargo test - cargo test
- name: rebuild-cache - name: rebuild-cache
@ -75,11 +62,11 @@ steps:
cache_key: '{{ .Repo.Name }}_{{ checksum "garage/Cargo.lock" }}_{{ arch }}_{{ os }}_gzip' cache_key: '{{ .Repo.Name }}_{{ checksum "garage/Cargo.lock" }}_{{ arch }}_{{ os }}_gzip'
region: garage region: garage
mount: mount:
- 'garage/target' - 'target'
- 'cargo/registry/index' - '/drone/cargo/registry/index'
- 'cargo/registry/cache' - '/drone/cargo/registry/cache'
- 'cargo/git/db' - '/drone/cargo/git/db'
- 'cargo/bin' - '/drone/cargo/bin'
path_style: true path_style: true
endpoint: https://garage.deuxfleurs.fr endpoint: https://garage.deuxfleurs.fr
@ -91,5 +78,4 @@ steps:
- apt-get update - apt-get update
- apt-get install --yes libsodium-dev awscli python-pip - apt-get install --yes libsodium-dev awscli python-pip
- pip install s3cmd - pip install s3cmd
- cd garage
- ./script/test-smoke.sh || (cat /tmp/garage.log; false) - ./script/test-smoke.sh || (cat /tmp/garage.log; false)