-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
49 lines (37 loc) · 1.78 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
language: bash # Use container-based infrastructure for quicker build start-up
sudo: false
addons:
apt:
sources:
- debian-sid # Grab shellcheck from the Debian repo (o_O)
packages:
- shellcheck
script:
## Main script check:
- bash -c 'shopt -s globstar; shellcheck -e SC1090 -e SC2034 -e SC2154 -e SC2086 -e SC2116 -e SC2039 -e SC2028 -e SC2162 piranha'
## Function script check:
- bash -c 'shopt -s globstar; shellcheck -e SC1090 -e SC2034 -e SC2154 -e SC2086 -e SC2116 -e SC2039 -e SC2028 -e SC2162 **/calcAlignmentPIS'
## INFO:
- bash -c 'echo "NOTES
Several reasons to exclude shecllcheck errors here: 1) code has been tested manually and works;
2) checking by eye reveals some of these errors not generally useful (e.g. 'SC2039: In POSIX sh, [[ ]]
is undefined.' -- but code is written for sh/bash, and here I follow bashstyle recommendations, which
are considered to reflect best practices, thus supersedes shellcheck); 3) checking by eye reveals that
a number of 'SC2028' comments/errors refer to R script and thus reflect that code uses UNIX shell
commands and creates an Rscript with R commands, creating mismatch between Travis CI lanaguage setting
and the code (two languages in script).
"'
## OLD script code:
## - bash -c 'shellcheck piranha'
## - bash -c 'shellcheck bin/calcAlignmentPIS'
matrix:
fast_finish: true
################################### EXTRAS THAT WILL WORK IN ANY YML FILE:
## notifications:
## email:
## on_success: change
## on_failure: change
################################## IDEAS I HAVEN'T TRIED YET:
##--The following has not been tested, but is from URL: https://carlosbecker.com/posts/lint-shell-scripts/
## git submodule add https://github.com/caarlos0/shell-travis-build.git build
## cp build/travis.yml.example .travis.yml