image: "ubuntu:18.04"

variables:
  GIT_STRATEGY: "pull"
  GIT_SUBMODULE_STRATEGY: "recursive"
  GIT_CHECKOUT: "true"

before_script:
 - |
    apt-get update -qq &&
    apt-get install -qq \
        bison \
        build-essential \
        curl \
        dosfstools \
        flex \
        fuse \
        genisoimage \
        git \
        gnupg \
        libfuse-dev \
        nasm \
        pkg-config \
        software-properties-common \
        syslinux \
        syslinux-utils \
        texinfo \
        wget &&
    curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none

img:
    script:
     - |
        source "$HOME/.cargo/env" &&
        cargo install cargo-config cargo-xbuild xargo &&
        make ci-img IMG_TAG=$CI_COMMIT_REF_NAME
    artifacts:
        paths:
         - build/img/
        expire_in: 1 week

image: "ubuntu:18.04"

variables:
  GIT_STRATEGY: "pull"
  GIT_SUBMODULE_STRATEGY: "recursive"
  GIT_CHECKOUT: "true"

before_script:
 - |
    apt-get update -qq &&
    apt-get install -qq \
        bison \
        build-essential \
        curl \
        dosfstools \
        flex \
        fuse \
        genisoimage \
        git \
        gnupg \
        libfuse-dev \
        nasm \
        pkg-config \
        software-properties-common \
        syslinux \
        syslinux-utils \
        texinfo \
        wget &&
    curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none

img:
    script:
     - |
        source "$HOME/.cargo/env" &&
        cargo install --version 0.1.1 cargo-config &&
        cargo install --version 0.3.20 cargo-xbuild &&
        cargo install xargo &&
        make ci-img IMG_TAG=$CI_COMMIT_REF_NAME
    artifacts:
        paths:
         - build/img/
        expire_in: 1 week

Install the exact versions required in CI
Install the exact versions required in CI

The requirements are checked in mk/depends.mk to be the exact versions
specified here. This way we don't run into version mismatches in CI.
