image: 'rust:latest'

variables:
    CARGO_HOME: $CI_PROJECT_DIR/cargo
before_script:
  - apt-get update -qq
  - apt-get install -qq build-essential curl git
cache:
  paths:
    - cargo/
    - target/

linux:
  image: 'rust:1.31.0'
  script:
    - cargo build
    - make tests

linux:stable:
  script:
    - cargo build
    - TOOLCHAIN= make tests

redox:
  variables:
    CC: "x86_64-unknown-redox-gcc"
  before_script:
    - apt-get update -qq
    - apt-get install -qq build-essential curl git gnupg software-properties-common apt-transport-https
    - apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AA12E97F0881517F
    - add-apt-repository 'deb https://static.redox-os.org/toolchain/apt /'
    - apt-get update -qq && apt-get install -qq x86-64-unknown-redox-gcc
    - rustup default nightly-2018-10-05
    - rustup target add x86_64-unknown-redox
  script:
    - make TOOLCHAIN= REDOX=1

image: 'rust:latest'

variables:
    CARGO_HOME: $CI_PROJECT_DIR/cargo
before_script:
  - apt-get update -qq
  - apt-get install -qq build-essential curl git
cache:
  paths:
    - cargo/
    - target/

linux:
  image: 'rust:1.31.0'
  script:
    - cargo build
    - make tests

linux:stable:
  script:
    - cargo build
    - TOOLCHAIN= make tests

redox:
  variables:
    CC: "x86_64-unknown-redox-gcc"
  before_script:
    - apt-get update -qq
    - apt-get install -qq build-essential curl git gnupg software-properties-common apt-transport-https
    - apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AA12E97F0881517F
    - add-apt-repository 'deb https://static.redox-os.org/toolchain/apt /'
    - apt-get update -qq && apt-get install -qq x86-64-unknown-redox-gcc
    - rustup default nightly-2018-10-05
    - rustup target add x86_64-unknown-redox
  script:
    - make TOOLCHAIN= REDOX=1

pages:
  image: hrektts/mdbook
  stage: deploy
  script:
  - mdbook build -d ../public manual
  artifacts:
    paths:
    - public
  only:
  - master

Add building the GitLab pages as a build step
Add building the GitLab pages as a build step
