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