-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
39 lines (33 loc) · 840 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
language: bash
os:
- linux
env:
- BASHVER=
- BASHVER=3.2
- BASHVER=4.0
- BASHVER=4.1
- BASHVER=4.2
- BASHVER=4.3
- BASHVER=4.4
matrix:
include:
- os: osx
services:
- docker
script:
- |
wget --no-check-certificate -O bats.tar.gz https://github.com/bats-core/bats-core/archive/v1.1.0.tar.gz
mkdir bats
tar --strip-components=1 -xvzf bats.tar.gz -C bats
if [[ "$TRAVIS_OS_NAME" == 'linux' && -n "$BASHVER" ]]; then
docker build --build-arg bashver=${BASHVER} --tag shsh/shsh:bash-${BASHVER} .
docker run -it bash:${BASHVER} --version
time docker run -it shsh/shsh:bash-${BASHVER} --tap /opt/shsh/tests
else
git config --global user.email "user@example.com"
git config --global user.name "User Name"
time bats/bin/bats --tap tests
fi
notifications:
email:
on_success: never