Przeglądaj źródła

enable rustfmt in travis ci

Michael Mächtel 8 lat temu
rodzic
commit
31a14b7c81
2 zmienionych plików z 4 dodań i 0 usunięć
  1. 1
    0
      .travis.yml
  2. 3
    0
      ci/run-travis.sh

+ 1
- 0
.travis.yml Wyświetl plik

1
 language: rust
1
 language: rust
2
 rust: stable
2
 rust: stable
3
 cache: cargo
3
 cache: cargo
4
+before_script: (cargo install rustfmt || true)
4
 sudo: false
5
 sudo: false
5
 git:
6
 git:
6
   depth: 1
7
   depth: 1

+ 3
- 0
ci/run-travis.sh Wyświetl plik

8
 # basic style check
8
 # basic style check
9
 "$MY_PATH/check-basic-style.py"
9
 "$MY_PATH/check-basic-style.py"
10
 
10
 
11
+# rustfmt style check
12
+"$MY_PATH/rustfmt.sh"
13
+
11
 # check that everything compiles and all tests pass
14
 # check that everything compiles and all tests pass
12
 "$MY_PATH/test-rust.sh"
15
 "$MY_PATH/test-rust.sh"
13
 
16
 

Ładowanie…
Anuluj
Zapisz