Added editorconfig file
continuous-integration/drone the build was successful
Details
continuous-integration/drone the build was successful
Details
parent
fa5ee06a04
commit
89bc9b91e1
|
@ -0,0 +1,9 @@
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = false
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
[*.{yml,yaml}]
|
||||||
|
indent_size = 2
|
|
@ -6,7 +6,7 @@ target/
|
||||||
|
|
||||||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
|
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
|
||||||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
|
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
|
||||||
# Cargo.lock
|
Cargo.lock
|
||||||
|
|
||||||
# These are backup files generated by rustfmt
|
# These are backup files generated by rustfmt
|
||||||
**/*.rs.bk
|
**/*.rs.bk
|
||||||
|
|
122
.woodpecker.yml
122
.woodpecker.yml
|
@ -1,77 +1,77 @@
|
||||||
pipeline:
|
pipeline:
|
||||||
# Download the cache from S3
|
# Download the cache from S3
|
||||||
restore-cache:
|
restore-cache:
|
||||||
image: plugins/s3-cache
|
image: plugins/s3-cache
|
||||||
pull: true
|
pull: true
|
||||||
|
|
||||||
endpoint: https://s3.roosens.me
|
endpoint: https://s3.roosens.me
|
||||||
root: build-cache/
|
root: build-cache/
|
||||||
restore: true
|
restore: true
|
||||||
|
|
||||||
secrets: [ cache_s3_access_key, cache_s3_secret_key ]
|
secrets: [ cache_s3_access_key, cache_s3_secret_key ]
|
||||||
|
|
||||||
|
|
||||||
# =====BUILDING=====
|
# =====BUILDING=====
|
||||||
build-backend:
|
build-backend:
|
||||||
image: rust:1.53-alpine
|
image: rust:1.53-alpine
|
||||||
pull: true
|
pull: true
|
||||||
group: build
|
group: build
|
||||||
environment:
|
environment:
|
||||||
- CARGO_HOME=.cargo
|
- CARGO_HOME=.cargo
|
||||||
commands:
|
commands:
|
||||||
- apk add musl-dev postgresql-dev
|
- apk add musl-dev postgresql-dev
|
||||||
- cargo build
|
- cargo build
|
||||||
|
|
||||||
|
|
||||||
# =====TESTING=====
|
# =====TESTING=====
|
||||||
test-backend:
|
test-backend:
|
||||||
image: rust:1.53-alpine
|
image: rust:1.53-alpine
|
||||||
environment:
|
environment:
|
||||||
- CARGO_HOME=.cargo
|
- CARGO_HOME=.cargo
|
||||||
commands:
|
commands:
|
||||||
- apk add musl-dev postgresql-dev
|
- apk add musl-dev postgresql-dev
|
||||||
- cargo test
|
- cargo test
|
||||||
|
|
||||||
|
|
||||||
# =====LINTING=====
|
# =====LINTING=====
|
||||||
lint-backend:
|
lint-backend:
|
||||||
image: rust:1.53-alpine
|
image: rust:1.53-alpine
|
||||||
group: lint
|
group: lint
|
||||||
environment:
|
environment:
|
||||||
- CARGO_HOME=.cargo
|
- CARGO_HOME=.cargo
|
||||||
commands:
|
commands:
|
||||||
- apk add musl-dev postgresql-dev
|
- apk add musl-dev postgresql-dev
|
||||||
- rustup component add rustfmt clippy
|
- rustup component add rustfmt clippy
|
||||||
- cargo fmt -- --check
|
- cargo fmt -- --check
|
||||||
# This is run here because it requires compilation
|
# This is run here because it requires compilation
|
||||||
- cargo clippy --all-targets -- -D warnings
|
- cargo clippy --all-targets -- -D warnings
|
||||||
|
|
||||||
|
|
||||||
# =====REBUILD & FLUSH CACHE=====
|
# =====REBUILD & FLUSH CACHE=====
|
||||||
rebuild-cache:
|
rebuild-cache:
|
||||||
image: plugins/s3-cache
|
image: plugins/s3-cache
|
||||||
|
|
||||||
endpoint: https://s3.roosens.me
|
endpoint: https://s3.roosens.me
|
||||||
root: build-cache/
|
root: build-cache/
|
||||||
rebuild: true
|
rebuild: true
|
||||||
mount:
|
mount:
|
||||||
- target
|
- target
|
||||||
- .cargo
|
- .cargo
|
||||||
|
|
||||||
secrets: [ cache_s3_access_key, cache_s3_secret_key ]
|
secrets: [ cache_s3_access_key, cache_s3_secret_key ]
|
||||||
# Push the cache, even on failure
|
# Push the cache, even on failure
|
||||||
when:
|
when:
|
||||||
status: [ success, failure ]
|
status: [ success, failure ]
|
||||||
|
|
||||||
flush-cache:
|
flush-cache:
|
||||||
image: plugins/s3-cache
|
image: plugins/s3-cache
|
||||||
|
|
||||||
endpoint: https://s3.roosens.me
|
endpoint: https://s3.roosens.me
|
||||||
root: build-cache/
|
root: build-cache/
|
||||||
flush: true
|
flush: true
|
||||||
flush_age: 14
|
flush_age: 14
|
||||||
|
|
||||||
secrets: [ cache_s3_access_key, cache_s3_secret_key ]
|
secrets: [ cache_s3_access_key, cache_s3_secret_key ]
|
||||||
# Push the cache, even on failure
|
# Push the cache, even on failure
|
||||||
when:
|
when:
|
||||||
status: [ success, failure ]
|
status: [ success, failure ]
|
||||||
|
|
Reference in New Issue