-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
executable file
·51 lines (46 loc) · 1.52 KB
/
.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
47
48
49
50
51
language: shell # (unofficial)
distro: xenial
sudo: false
env:
# outdated/legacy
- TEST_SHELL=sh BORG=1.0.2 BORG_SOURCE=binary BORG_VARIANT=borg-linux64 # old, Ubuntu Xenial
# outdated stable
- TEST_SHELL=zsh BORG=1.0.13 BORG_SOURCE=binary BORG_VARIANT=borg-linux64
- TEST_SHELL=bash BORG=1.0.13 BORG_SOURCE=binary BORG_VARIANT=borg-linux64
# new stable
- TEST_SHELL=sh BORG=1.1.9 BORG_SOURCE=binary BORG_VARIANT=borg-linux64
- TEST_SHELL=zsh BORG=1.1.9 BORG_SOURCE=binary BORG_VARIANT=borg-linux64
- TEST_SHELL=bash BORG=1.1.9 BORG_SOURCE=binary BORG_VARIANT=borg-linux64
# - TEST_SHELL=sh BORG=stable BORG_VARIANT=borg-linux64 BORG_SOURCE=binary # stable, unsupported by current TravisCi config
# - TEST_SHELL=sh BORG=nightly # dev version, unsupported by current TravisCi config
before_script:
# add custom binary path
- mkdir "$PWD/custombin/"
- export PATH="$PWD/custombin/:$PATH"
# installing borg
- tests/helper/installBorg.sh
# install shunit2
- tests/helper/installShUnit.sh
# tell Travis to use color anyways
- export SHUNIT_COLOR='always'
script:
- tests/helper/verifySignature.sh
- $TEST_SHELL tests/helper/helperCheckVersion.sh
- tests/testShellcheck.sh
- tests/unitTests/borgcronStarter.sh
- tests/unitTests/borgcron.sh
- tests/unitTests/borgcronReal.sh
- tests/unitTests/checkLastBackup.sh
addons:
apt:
packages:
- shellcheck
# shells to check
- zsh
matrix:
allow_failures:
- env: BORG=nightly
notifications:
email:
on_success: change
on_failure: change