image: "redoxos/redoxer"

stages:
    - build
    - test

cache:
    paths:
        - target/

build:linux:stable:
    stage: build
    script:
        - rustup update stable
        - cargo +stable build --verbose

build:linux:
    stage: build
    script: cargo +nightly build --verbose

build:redox:
    stage: build
    script: redoxer build --verbose

test:linux:stable:
    stage: test
    dependencies:
        - build:linux:stable
    script: cargo +stable test --verbose

test:linux:
    stage: test
    dependencies:
        - build:linux
    script: cargo +nightly test --verbose

test:redox:
    stage: test
    dependencies:
        - build:redox
    script: redoxer test --verbose

image: "redoxos/redoxer"

stages:
    - build
    - test

cache:
    paths:
        - target/

build:linux:stable:
    stage: build
    script:
        - cargo +stable build --verbose

build:linux:
    stage: build
    script: cargo +nightly build --verbose

build:redox:
    stage: build
    script: redoxer build --verbose

test:linux:stable:
    stage: test
    dependencies:
        - build:linux:stable
    script:
        - rustup update stable
        - cargo +stable test --verbose

test:linux:
    stage: test
    dependencies:
        - build:linux
    script: cargo +nightly test --verbose

test:redox:
    stage: test
    dependencies:
        - build:redox
    script: redoxer test --verbose

Install stable toolchain for stable test
Install stable toolchain for stable test
