.gitlab-ci.yml 694 Bytes
Newer Older
1
image: "rust:latest"
Arthur Carlsson's avatar
Arthur Carlsson committed
2 3 4 5 6 7 8 9 10

# Optional: Pick zero or more services to be used on all builds.
# Only needed when using a docker container to run your tests in.
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-service
#services:
#  - mysql:latest
#  - redis:latest
#  - postgres:latest

11 12
before_script:
- rustup install nightly
13
- cargo +nightly install rustfmt-nightly --force
Arthur Carlsson's avatar
Arthur Carlsson committed
14 15 16 17 18

# Use cargo to test the project
test:cargo:
  script:
  - rustc --version && cargo --version      # Print version info for debugging
19
  - cargo +nightly fmt -- --write-mode=diff # Make sure format is OK
Arthur Carlsson's avatar
Arthur Carlsson committed
20
  - cargo test --verbose --jobs 1 --release # Don't paralize to make errors more readable