xref: /relibc/ralloc/.gitlab-ci.yml (revision 311db75868ff73089a3ab46258ce8cdb2d1670f9)
165498472STom Almeida# This file is a template, and might need editing before it works on your project.
265498472STom Almeida# Official language image. Look for the different tagged releases at:
365498472STom Almeida# https://hub.docker.com/r/library/rust/tags/
465498472STom Almeidaimage: "rust:latest"
565498472STom Almeida
665498472STom Almeida# Optional: Pick zero or more services to be used on all builds.
765498472STom Almeida# Only needed when using a docker container to run your tests in.
865498472STom Almeida# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-a-service
965498472STom Almeida#services:
1065498472STom Almeida#  - mysql:latest
1165498472STom Almeida#  - redis:latest
1265498472STom Almeida#  - postgres:latest
1365498472STom Almeida
1465498472STom Almeida# Optional: Install a C compiler, cmake and git into the container.
1565498472STom Almeida# You will often need this when you (or any of your dependencies) depends on C code.
1665498472STom Almeida#before_script:
1765498472STom Almeida#- apt-get update -yqq
1865498472STom Almeida#- apt-get install -yqq --no-install-recommends build-essential
1965498472STom Almeida
2065498472STom Almeida# Use cargo to test the project
2165498472STom Almeidatest:cargo:
2265498472STom Almeida  script:
23*0506ba59STom Almeida  - rustup toolchain install nightly
2465498472STom Almeida  - rustc --version && cargo --version      # Print version info for debugging
2565498472STom Almeida  - cargo +nightly test --all --verbose
26