浏览代码

enable bats test in travis container

Michael Mächtel 8 年前
父节点
当前提交
3594a9402a
共有 2 个文件被更改,包括 7 次插入0 次删除
  1. 4
    0
      .travis.yml
  2. 3
    0
      ci/run-travis.sh

+ 4
- 0
.travis.yml 查看文件

@@ -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:

+ 3
- 0
ci/run-travis.sh 查看文件

@@ -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

正在加载...
取消
保存