-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (47 loc) · 1.17 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
52
53
54
55
56
language: sh
sudo: false
env:
- SCRIPTS='generate-script generate-readme pomfload'
cache:
directories:
- $HOME/.stack
addons:
apt:
packages:
# For ``stack`` usage
- g++
- gcc
- libc6-dev
- libffi-dev
- libgmp-dev
- make
- xz-utils
- zlib1g-dev
- gnupg
# For our purposes
- devscripts
- jq
install:
- mkdir -p "$HOME/.local/bin"
- export PATH="$HOME/.local/bin:$PATH"
- mkdir stack_tmp
- wget https://www.stackage.org/stack/linux-x86_64 -O stack.tar.gz
- tar xzf stack.tar.gz -C stack_tmp
- cp stack_tmp/*/stack "$HOME/.local/bin/"
- which stack
- stack --version
- stack update
- stack setup
- stack path
- test "$(stack path --stack-root)" = "$HOME/.stack"
- stack install ShellCheck
- which shellcheck
- shellcheck --version
script:
- CHECKBASHISMS_MSG="Allowed to fail due to some bugs in checkbashisms"
- checkbashisms -xp ${SCRIPTS} || echo "${CHECKBASHISMS_MSG}"
- shellcheck --shell=sh ${SCRIPTS}
- jq . sites.json
- jq -r "$(cat sites_to_help_text.jq)" sites.json
- diff <(./generate-script) pomfload
- diff <(./generate-readme) README.rst