aboutsummaryrefslogtreecommitdiff
path: root/.drone.yml
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-03-18 19:27:02 +0100
committerAlex Auvolat <alex@adnab.me>2021-03-18 19:27:02 +0100
commit4348bde180887f5185ca6da6024476e8e8fb2fe6 (patch)
tree8a35f0e4229d15665af7673eebcaa1b3d75a73cb /.drone.yml
parent5b659b28ce6bef15072d2fc93f777aa8ff73b2d8 (diff)
parent4eb16e886388f35d2bdee52b16922421004cf132 (diff)
downloadgarage-4348bde180887f5185ca6da6024476e8e8fb2fe6.tar.gz
garage-4348bde180887f5185ca6da6024476e8e8fb2fe6.zip
Merge branch 'dev-0.2'
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml36
1 files changed, 11 insertions, 25 deletions
diff --git a/.drone.yml b/.drone.yml
index 15582cc3..68094a31 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -2,20 +2,9 @@ kind: pipeline
name: default
workspace:
- base: /drone
-
-clone:
- disable: true
+ base: /drone/garage
steps:
- - name: clone
- image: alpine/git
- commands:
- - mkdir -p cargo
- - git clone https://git.deuxfleurs.fr/Deuxfleurs/garage.git
- - cd garage
- - git checkout $DRONE_COMMIT
-
- name: restore-cache
image: meltwater/drone-cache:dev
environment:
@@ -31,11 +20,11 @@ steps:
cache_key: '{{ .Repo.Name }}_{{ checksum "garage/Cargo.lock" }}_{{ arch }}_{{ os }}_gzip'
region: garage
mount:
- - 'garage/target'
- - 'cargo/registry/index'
- - 'cargo/registry/cache'
- - 'cargo/git/db'
- - 'cargo/bin'
+ - 'target'
+ - '/drone/cargo/registry/index'
+ - '/drone/cargo/registry/cache'
+ - '/drone/cargo/bin'
+ - '/drone/cargo/git/db'
path_style: true
endpoint: https://garage.deuxfleurs.fr
@@ -47,7 +36,6 @@ steps:
- apt-get update
- apt-get install --yes libsodium-dev
- pwd
- - cd garage
- cargo build
- name: cargo-test
@@ -57,7 +45,6 @@ steps:
commands:
- apt-get update
- apt-get install --yes libsodium-dev
- - cd garage
- cargo test
- name: rebuild-cache
@@ -75,11 +62,11 @@ steps:
cache_key: '{{ .Repo.Name }}_{{ checksum "garage/Cargo.lock" }}_{{ arch }}_{{ os }}_gzip'
region: garage
mount:
- - 'garage/target'
- - 'cargo/registry/index'
- - 'cargo/registry/cache'
- - 'cargo/git/db'
- - 'cargo/bin'
+ - 'target'
+ - '/drone/cargo/registry/index'
+ - '/drone/cargo/registry/cache'
+ - '/drone/cargo/git/db'
+ - '/drone/cargo/bin'
path_style: true
endpoint: https://garage.deuxfleurs.fr
@@ -91,5 +78,4 @@ steps:
- apt-get update
- apt-get install --yes libsodium-dev awscli python-pip
- pip install s3cmd
- - cd garage
- ./script/test-smoke.sh || (cat /tmp/garage.log; false)