From a98ff1b6b757a9d3acd70d77eb9b435f1d1cd713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xory=20=E2=80=8B?= Date: Wed, 17 Apr 2024 11:53:35 +0000 Subject: [PATCH] fix: sudo & feat: wait bro before_script exists? --- .gitlab-ci.yml | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 592214e..b01ab00 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 \ No newline at end of file