Skip to content

Commit

Permalink
Set up Circle CI and run Ansible Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeinhardt committed Nov 3, 2019
1 parent a22ec0a commit ec02f75
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,27 @@
version: 2
jobs:
build:
working_directory: ~/huck-up
docker:
- image: circleci/python:3.8
steps:
- checkout
- run:
name: Update permissions (/usr/local/bin)
command: sudo chown -R circleci:circleci /usr/local/bin
- run:
name: Update permissions (/usr/local/lib)
command: sudo chown -R circleci:circleci /usr/local/lib/python3.8/site-packages
- restore_cache:
key: deps-{{ .Branch }}
- run:
name: Install Ansible Lint
command: sudo pip install --quiet ansible-lint
- run:
name: Run Ansible Lint
command: ansible-lint -x 401,701 site.yml
- save_cache:
key: deps-{{ .Branch }}
paths:
- "/usr/local/bin"
- "/usr/local/lib/python3.8/site-packages"
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
# Huckleberry - Welcome home
# Huckleberry - Welcome home [![CircleCI](https://circleci.com/gh/pmeinhardt/huck-up.svg?style=svg)](https://circleci.com/gh/pmeinhardt/huck-up)

My personal [Raspberry Pi](https://www.raspberrypi.org/) (home server) management.

Expand Down
4 changes: 3 additions & 1 deletion roles/dotfiles/handlers/main.yml
@@ -1,3 +1,5 @@
---
- name: symlink dotfiles
shell: ./script/link chdir={{ home }}/.dotfiles
command: ./script/link
args:
chdir: "{{ home }}/.dotfiles"

0 comments on commit ec02f75

Please sign in to comment.