aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Fenoll <[email protected]>2017-11-08 15:47:11 +0100
committerPierre Fenoll <[email protected]>2018-03-14 11:37:24 +0100
commitc1b9834e06008559ff1ee448e570d6af76bba9c5 (patch)
treee7af6f9655414ccef36e4f7cbf352c4943515bb8
parent27f81595e29cb2331fdf2377a008f22aa085d55c (diff)
downloadkerl-c1b9834e06008559ff1ee448e570d6af76bba9c5.tar.gz
kerl-c1b9834e06008559ff1ee448e570d6af76bba9c5.tar.bz2
kerl-c1b9834e06008559ff1ee448e570d6af76bba9c5.zip
shellcheck: add a pass to CI
-rw-r--r--.travis.yml32
-rw-r--r--README.md2
2 files changed, 31 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 326bbc2..cb42360 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,3 +1,13 @@
+language: bash
+sudo: false
+
+addons:
+ apt:
+ sources:
+ - debian-sid # for: shellCheck
+ packages:
+ - shellcheck
+
os:
- linux
- osx
@@ -6,19 +16,37 @@ env:
global:
- KERL_BASE_DIR="$TMPDIR"/.kerl
- KERL_CONFIGURE_DISABLE_APPLICATIONS="odbc"
- matrix:
- - _KERL_VSN=19.2
+ matrix:
+ - _KERL_VSN=19.2
- _KERL_VSN=18.3
- _KERL_VSN=17.5
- _KERL_VSN=R16B03-1
+before_script:
+ - set -o pipefail
+ - |
+ if [[ "$TRAVIS_OS_NAME" == 'linux' ]] && [[ "$_KERL_VSN" == '19.2' ]]; then
+ set -e
+ export USING_SHELLCHECK=1
+ shellcheck ./kerl
+ shellcheck ./bash_completion/kerl
+ # zsh_completion/_kerl # https://github.com/koalaman/shellcheck/issues/809
+ set +e
+ fi
+
script:
+ - set -e
- ./kerl update releases
- travis_wait 45 ./kerl build "$_KERL_VSN" "$_KERL_VSN"
- ./kerl install "$_KERL_VSN" "install_$_KERL_VSN"
- ./kerl status
+ - |
+ if [[ "$USING_SHELLCHECK" == '1' ]]; then
+ shellcheck $(./kerl path install_$_KERL_VSN)/activate
+ fi
- source $(./kerl path install_$_KERL_VSN)/activate
- erl -s crypto -s init stop
- kerl_deactivate
- ./kerl delete installation $(./kerl path install_$_KERL_VSN)
- ./kerl delete build "$_KERL_VSN"
+ - set +e
diff --git a/README.md b/README.md
index 5db2901..d197ee5 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-kerl
+kerl [![TravisCI build status](https://travis-ci.org/kerl/kerl.svg?branch=master)](https://travis-ci.org/kerl/kerl)
====
CI status: [![TravisCI build status](https://travis-ci.org/kerl/kerl.svg?branch=master)](https://travis-ci.org/kerl/kerl) [![CircleCI](https://circleci.com/gh/kerl/kerl.svg?style=svg)](https://circleci.com/gh/kerl/kerl)