forked from openhab/openhabian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (20 loc) · 863 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
language: bash
addons:
apt:
packages:
- shellcheck
update: true
services:
- docker
install:
- shellcheck --version
- docker build --tag openhabian/openhabian-bats .
script:
- docker run -it openhabian/openhabian-bats bash -c 'bats -r -f "unit-." .'
- docker run --name "install-test" --privileged -d openhabian/openhabian-bats
- travis_wait 60 sleep infinity & docker exec -it "install-test" bash -c "./build.bash local-test && mv ~/.profile ~/.bash_profil && /etc/rc.local"
- travis_wait 60 sleep infinity & docker exec -it install-test bash -c 'bats -r -f "installation-." .'
- travis_wait 60 sleep infinity & docker exec -it install-test bash -c 'bats -r -f "destructive-." .'
- shellcheck -s bash openhabian-setup.sh || true
- shellcheck -s bash functions/*.bash || true
- shellcheck -s bash build-image/*.bash || true