Skip to content
Permalink
Browse files

Set up Circle CI and run Ansible Lint

  • Loading branch information
pmeinhardt committed Nov 3, 2019
1 parent a22ec0a commit ec02f750d70f88d8b056395065bddc4de3f8196d
Showing with 31 additions and 2 deletions.
  1. +27 −0 .circleci/config.yml
  2. +1 −1 README.md
  3. +3 −1 roles/dotfiles/handlers/main.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"
@@ -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.

@@ -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.
You can’t perform that action at this time.