-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfig.yml
50 lines (50 loc) · 1.34 KB
/
config.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
---
#
# Python CircleCI 2.0 configuration file
# Check https://circleci.com/docs/2.0/language-python/ for more details.
#
version: 2.1
orbs:
shellcheck: circleci/[email protected]
jobs:
build:
docker:
- image: cimg/base:stable
working_directory: ~/repo
resource_class: small
steps:
- checkout
- run:
name: Install ShellCheck
command: |
set -e
set -u
set -o pipefail
# Check if we are root or need sudo.
if [[ ${EUID} == 0 ]]; then
export SUDO=''
else
export SUDO='sudo'
fi
SHELLCHECK_VERSION=0.8.0
wget -qO- "https://github.com/koalaman/shellcheck/releases/download/v${SHELLCHECK_VERSION}/shellcheck-v${SHELLCHECK_VERSION}.linux.x86_64.tar.xz" \
| tar -xJf -
cd "shellcheck-v${SHELLCHECK_VERSION}/"
${SUDO} cp shellcheck /usr/local/bin/
- run:
name: Run IndentationCheck
shell: /bin/bash
command: |
set -e
set -u
set -o pipefail
check/indentationcheck.sh
- run:
name: Run ShellCheck
shell: /bin/bash
command: |
set -e
set -u
set -o pipefail
check/shellcheck.sh
...