You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
645 B
29 lines
645 B
5 years ago
|
version: 2
|
||
|
jobs:
|
||
|
build:
|
||
|
docker:
|
||
|
- image: circleci/python:3.6.1
|
||
|
|
||
|
steps:
|
||
|
- checkout
|
||
|
|
||
|
- restore_cache:
|
||
|
keys:
|
||
|
- deps-{{ checksum "requirements.txt" }}
|
||
|
- run:
|
||
|
name: install dependencies
|
||
|
command: |
|
||
|
python3 -m venv venv
|
||
|
. venv/bin/activate
|
||
|
pip install -r requirements.txt
|
||
|
- save_cache:
|
||
|
paths:
|
||
|
- ./venv
|
||
|
key: deps-{{ checksum "requirements.txt" }}
|
||
|
|
||
|
- run:
|
||
|
name: Run Tests
|
||
|
command: |
|
||
|
. venv/bin/activate
|
||
|
ansible-lint . **/*.yml -c test/lint/.ansible-lint
|