jD91mZM2 6 年之前
父節點
當前提交
8e7cd11bc0
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      .gitlab-ci.yml

+ 4 - 2
.gitlab-ci.yml

@@ -1,6 +1,7 @@
 image: "rust:latest"
 
 before_script:
+    - git submodule update --init --recursive
     - rustup toolchain add nightly
     - rustup target add x86_64-unknown-redox --toolchain nightly
     - rustup show      # Print version info for debugging
@@ -19,7 +20,8 @@ test:linux:
 
 fmt:
     script:
-        - ./fmt.sh -- --write-mode=diff
+        - rustup component add rustfmt-preview
+        - ./fmt.sh -- --check
 
 # TODO: Set up a docker image with a redox vm that would allow to
-#   run things like tests under redox
+#   run things like tests under redox