diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..c96e056 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,27 @@ +--- +kind: pipeline +type: docker +name: default + +steps: + - name: test + image: python:3.9 + environment: + DO_API_TOKEN: + from_secret: DO_API_TOKEN + USER: root + ANSIBLE_FORCE_COLOR: '1' + volumes: + - name: cache + path: '/usr/local/lib/python3.9/site-packages' + commands: + - pip install -r requirements.txt + - ln -s $PWD /drone/ansible-role-consul + - molecule test + - black --check . + - isort --check-only . + + - name: fail-on-debug-instruction + image: alpine + commands: + - grep '|| sleep' .drone.yml && exit 1 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7c2442c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -language: python -python: 3.8.2 - -services: - - docker - -sudo: false - -addons: - apt: - packages: - - python-pip - -install: - - pip install ansible molecule docker - - printf '[defaults]\nroles_path=../' > ansible.cfg - -script: - - molecule test