Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up Circle CI and run Ansible Lint
- Loading branch information
1 parent
a22ec0a
commit ec02f75
Showing
3 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
--- | ||
- name: symlink dotfiles | ||
shell: ./script/link chdir={{ home }}/.dotfiles | ||
command: ./script/link | ||
args: | ||
chdir: "{{ home }}/.dotfiles" |