forked from bats-core/bats-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (38 loc) · 864 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
language: bash
os:
- linux
env:
- BASHVER=
- BASHVER=3.2
- BASHVER=4.0
- BASHVER=4.1
- BASHVER=4.2
- BASHVER=4.3
- BASHVER=4.4
- BASHVER=5
matrix:
include:
- os: osx
services:
- docker
before_script:
- |
if [[ "${TRAVIS_OS_NAME:-}" == 'linux' ]]; then
sudo apt-get install shellcheck
fi
script:
- |
if [[ "${TRAVIS_OS_NAME:-}" == 'linux' ]]; then
# @todo: Remove "|| true" once all coding standards issues are fixed.
./shellcheck.sh
fi
if [[ "${TRAVIS_OS_NAME:-}" == 'linux' && -n "${BASHVER}" ]]; then
docker build --build-arg bashver="${BASHVER}" --tag "bats/bats:bash-${BASHVER}" . &&
docker run -it "bash:${BASHVER}" --version &&
time docker run -it "bats/bats:bash-${BASHVER}" --tap /opt/bats/test
else
time bin/bats --tap test
fi
notifications:
email:
on_success: never