xref: /relibc/posix-regex/.gitlab-ci.yml (revision 440a304f6f6318bece8e87565ea2d7a4df876489)
1*440a304fSjD91mZM2# This file is a template, and might need editing before it works on your project.
2*440a304fSjD91mZM2# Official language image. Look for the different tagged releases at:
3*440a304fSjD91mZM2# https://hub.docker.com/r/library/rust/tags/
4*440a304fSjD91mZM2image: "rust:latest"
5*440a304fSjD91mZM2
6*440a304fSjD91mZM2# Optional: Pick zero or more services to be used on all builds.
7*440a304fSjD91mZM2# Only needed when using a docker container to run your tests in.
8*440a304fSjD91mZM2# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-a-service
9*440a304fSjD91mZM2#services:
10*440a304fSjD91mZM2#  - mysql:latest
11*440a304fSjD91mZM2#  - redis:latest
12*440a304fSjD91mZM2#  - postgres:latest
13*440a304fSjD91mZM2
14*440a304fSjD91mZM2# Optional: Install a C compiler, cmake and git into the container.
15*440a304fSjD91mZM2# You will often need this when you (or any of your dependencies) depends on C code.
16*440a304fSjD91mZM2#before_script:
17*440a304fSjD91mZM2#- apt-get update -yqq
18*440a304fSjD91mZM2#- apt-get install -yqq --no-install-recommends build-essential
19*440a304fSjD91mZM2
20*440a304fSjD91mZM2# Use cargo to test the project
21*440a304fSjD91mZM2test:default:
22*440a304fSjD91mZM2  script:
23*440a304fSjD91mZM2  - rustc --version && cargo --version      # Print version info for debugging
24*440a304fSjD91mZM2  - cargo test
25*440a304fSjD91mZM2
26*440a304fSjD91mZM2test:no_std:
27*440a304fSjD91mZM2  script:
28*440a304fSjD91mZM2  - rustc --version && cargo --version      # Print version info for debugging
29*440a304fSjD91mZM2  - cargo test --features no_std
30