-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircle.yml
41 lines (36 loc) · 1.43 KB
/
circle.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
version: 2.1
references:
project: &project iris
dir: &dir ~/iris
executors:
machine:
working_directory: *dir
environment:
- PATH: /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/circleci/.local/bin:/root/.local/bin
machine: true
commands:
shellcheck:
steps:
- run: wget -qO- "https://github.com/koalaman/shellcheck/releases/download/v0.6.0/shellcheck-v0.6.0.linux.x86_64.tar.xz" | tar -xJv; sudo cp shellcheck-v0.6.0/shellcheck /usr/bin
- run: find dev-resources/ -type f -maxdepth 1 | grep -vE '(\.(py|pyc|sql|ya?ml|md|csv|json|jsonl|jpg|txt|R)$|Dockerfile|.DS_Store)' | xargs shellcheck --shell bash --severity error
- run: find deploy/ src/ -type f | grep -vE '(\.(py|pyc|sql|ya?ml|md|csv|json|jsonl|jpg|txt)$|Dockerfile|.DS_Store)' | xargs shellcheck --shell bash --severity error
install_minicon:
steps:
- run: wget --directory-prefix=/home/circleci https://github.com/grycap/minicon/releases/download/1.2-2/minicon_1.2-2.deb
- run: sudo apt update; sudo apt install -qq jq; sudo dpkg -i /home/circleci/minicon_1.2-2.deb
start_docker:
steps:
- run: docker info >/dev/null 2>&1 || service docker start
jobs:
test-and-publish:
executor: machine
steps:
- checkout
- shellcheck
- install_minicon
- start_docker
- run: deploy/bin/publish-image
workflows:
commit:
jobs:
- test-and-publish