-
Notifications
You must be signed in to change notification settings - Fork 32
/
.travis.yml
39 lines (33 loc) · 1.09 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
language: generic
addons:
apt_packages:
- cabal-install
- ghc
- zsh
- ksh
cache:
directories:
- $HOME/.ghc
- $HOME/.cabal
before_install:
- wget --version
- curl --version
- if [[ -n $SHELLCHECK ]]; then cabal update && cabal install transformers-0.4.3.0 ShellCheck && shellcheck --version; fi
install:
- if [[ $SHELL == bash ]]; then git clone --depth 1 https://github.com/sstephenson/bats.git; fi
- touch ~/.bashrc
- ./install.sh
- . ~/.bashrc
script:
- if [[ -n $SHELLCHECK ]]; then shellcheck -s bash luaver && shellcheck -s dash luaver && shellcheck -s ksh luaver && shellcheck -s sh -e SC2039 luaver; fi
- if [[ -n $SHELLCHECK ]]; then shellcheck -s bash install.sh && shellcheck -s dash install.sh && shellcheck -s ksh install.sh && shellcheck -s sh -e SC2039 install.sh; fi
- if [[ -z $SHELLCHECK ]] && [[ $SHELL == bash ]]; then ./bats/bin/bats tests; fi
- if [[ -z $SHELLCHECK ]]; then $SHELL ./tests/integration\ tests/test.sh; fi
env:
global:
- PATH="$HOME/.cabal/bin:$PATH"
matrix:
- SHELL=bash
- SHELL=zsh
- SHELL=sh
- SHELLCHECK=true