aboutsummaryrefslogtreecommitdiff
path: root/proc-macro-error/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to 'proc-macro-error/.gitlab-ci.yml')
-rw-r--r--proc-macro-error/.gitlab-ci.yml54
1 files changed, 54 insertions, 0 deletions
diff --git a/proc-macro-error/.gitlab-ci.yml b/proc-macro-error/.gitlab-ci.yml
new file mode 100644
index 0000000..e36a714
--- /dev/null
+++ b/proc-macro-error/.gitlab-ci.yml
@@ -0,0 +1,54 @@
+stages:
+ - test
+
+
+.setup_template: &setup_template
+ stage: test
+ image: debian:stable-slim
+ before_script:
+ - export CARGO_HOME="$CI_PROJECT_DIR/.cargo"
+ - export PATH="$PATH:$CARGO_HOME/bin"
+ - export RUST_BACKTRACE=full
+ - apt-get update > /dev/null
+ - apt-get install -y curl build-essential > /dev/null
+ - curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUST_VERSION
+ - rustup --version
+ - rustc --version
+ - cargo --version
+
+.test_all_template: &test_all_template
+ <<: *setup_template
+ script:
+ - cargo test --all
+
+
+test-stable:
+ <<: *test_all_template
+ variables:
+ RUST_VERSION: stable
+
+test-beta:
+ <<: *test_all_template
+ variables:
+ RUST_VERSION: beta
+
+test-nightly:
+ <<: *test_all_template
+ variables:
+ RUST_VERSION: nightly
+
+
+test-1.31.0:
+ <<: *setup_template
+ script:
+ - cargo test --tests # skip doctests
+ variables:
+ RUST_VERSION: 1.31.0
+
+test-fmt:
+ <<: *setup_template
+ script:
+ - cargo fmt --all -- --check
+ - RUTSFLAGS='--cfg nightly_fmt' cargo fmt --all -- --check
+ variables:
+ RUST_VERSION: stable