fix: sudo & feat: wait bro before_script exists?

This commit is contained in:
Xory ​ 2024-04-17 11:53:35 +00:00
parent 7364d09da9
commit a98ff1b6b7

View file

@ -11,28 +11,20 @@ image: "rust:latest"
# - postgres:latest
# Optional: Install a C compiler, cmake and git into the container.
# You will often need this when you (or any of your dependencies) depends on C code.
# before_script:
# - apt-get update -yqq
# - apt-get install -yqq --no-install-recommends build-essential
before_script:
- sudo apt-get update -yqq
- sudo apt-get upgrade -yqq
- sudo apt-get install -yqq --no-install-recommends build-essential
- sudo apt-get install -yqq --no-install-recommends gcc
- curl https://sh.rustup.rs -sSf | sh -s -- -y
build:cargo:
script:
- apt-get update -yqq
- apt-get upgrade -yqq
- apt-get install -yqq --no-install-recommends build-essential
- apt-get install -yqq --no-install-recommends gcc
- curl https://sh.rustup.rs -sSf | sh -s -- -y
- rustc --version && cargo --version
- cargo build
# Use cargo to test the project
test:cargo:
script:
- apt-get update -yqq
- apt-get upgrade -yqq
- apt-get install -yqq --no-install-recommends build-essential
- apt-get install -yqq --no-install-recommends gcc
- curl https://sh.rustup.rs -sSf | sh -s -- -y
- rustc --version && cargo --version
- cargo test --workspace --verbose