Compare commits

...

3 Commits

Author SHA1 Message Date
Jef Roosens 8baeda4cae
[#45] Fixed clippy errors
continuous-integration/drone the build failed Details
2021-05-12 14:29:39 +02:00
Jef Roosens 2547434d95
[#45] Added cargo caching; made clippy more strict 2021-05-12 14:28:59 +02:00
Jef Roosens b9d0bb7aa5
[#45] Removed leftover comments 2021-05-12 14:12:29 +02:00
2 changed files with 3 additions and 29 deletions

View File

@ -21,7 +21,6 @@ pipeline:
- yarn install
- yarn run build
build-backend:
image: chewingbever/fej-builder:latest
pull: true
@ -51,7 +50,7 @@ pipeline:
commands:
- cargo fmt -- --check
# This is run here because it requires compilation
- cargo clippy -- -D warnings
- cargo clippy --all-targets -- -D warnings
# =====REBUILD & FLUSH CACHE=====
@ -63,6 +62,7 @@ pipeline:
rebuild: true
mount:
- target
- .cargo
- web/node_modules
secrets: [ cache_s3_access_key, cache_s3_secret_key ]
@ -83,26 +83,3 @@ pipeline:
# Push the cache, even on failure
when:
status: [ success, failure ]
# publish-builder:
# image: plugins/docker
# repo: chewingbever/fej-builder
# dockerfile: docker/Dockerfile.builder
# tag: [ latest ]
# secrets: [ docker_username, docker_password ]
# when:
# branch: develop
# event: push
# Backend cicd jobs are disabled until we can figure out a way to cache stuff
# test-backend:
# image: chewingbever/fej-builder:latest
# # Always update the builder image
# pull: true
# commands:
# - cargo test
# TODO build dev & rel image, deploy these images
# branches: [ master, develop ]

View File

@ -18,10 +18,7 @@ impl Street {
// This constructor just makes my life a bit easier during testing
#[cfg(test)]
fn new(name: String, city: String) -> Street {
Street {
name: name,
city: city,
}
Street { name, city }
}
}