浏览代码

Use a different environment variable to run rustfmt check

By @Disasm
luojia65 4 年之前
父节点
当前提交
04794a7406
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      .travis.yml
  2. 1 1
      ci/install.sh
  3. 1 1
      ci/script.sh

+ 1 - 1
.travis.yml

@@ -23,7 +23,7 @@ matrix:
       language: bash
       if: (branch = staging OR branch = trying OR branch = master) OR (type = pull_request AND branch = master)
 
-    - env: RUSTFMT=1
+    - env: CHECK_RUSTFMT=1
       rust: stable
       if: (branch = staging OR branch = trying OR branch = master) OR (type = pull_request AND branch = master)
 

+ 1 - 1
ci/install.sh

@@ -13,6 +13,6 @@ if [ -n "${CHECK_BLOBS:-}" ]; then
     fi
 fi
 
-if [ -n "${RUSTFMT:-}" ]; then
+if [ -n "${CHECK_RUSTFMT:-}" ]; then
     rustup component add rustfmt
 fi

+ 1 - 1
ci/script.sh

@@ -15,6 +15,6 @@ if [ -n "${CHECK_BLOBS:-}" ]; then
     ./check-blobs.sh
 fi
 
-if [ -n "${RUSTFMT:-}" ]; then
+if [ -n "${CHECK_RUSTFMT:-}" ]; then
     cargo fmt -- --check
 fi