Преглед изворни кода
Merge pull request #7 from htwg-syslab-rust/mm_bats_into_travis
enable bats test in travis container
Michael Mächtel
пре 8 година
No account linked to committer's email address
|
|
@@ -1,6 +1,10 @@
|
|
1
|
1
|
language: rust
|
|
2
|
2
|
rust: stable
|
|
3
|
3
|
cache: cargo
|
|
|
4
|
+before_install:
|
|
|
5
|
+ - sudo add-apt-repository -y ppa:duggan/bats
|
|
|
6
|
+ - sudo apt-get update
|
|
|
7
|
+ - sudo apt-get -y install bats
|
|
4
|
8
|
before_script: (cargo install rustfmt || true)
|
|
5
|
9
|
sudo: false
|
|
6
|
10
|
git:
|
|
|
@@ -14,6 +14,9 @@ MY_PATH="$(dirname "$0")"
|
|
14
|
14
|
# check that everything compiles and all tests pass
|
|
15
|
15
|
"$MY_PATH/test-rust.sh"
|
|
16
|
16
|
|
|
|
17
|
+# after compiles run bats tests
|
|
|
18
|
+"$MY_PATH/test-bats.sh"
|
|
|
19
|
+
|
|
17
|
20
|
# file existence
|
|
18
|
21
|
echo "=== Checking for Missing Files ======================================="
|
|
19
|
22
|
"$MY_PATH/check-files.py" || true
|