This repository has been archived on 2020-09-24. You can view files and clone it, but cannot push or open issues or pull requests.
2 changed files with
12 additions and
3 deletions
|
|
|
@ -35,6 +35,15 @@ steps:
|
|
|
|
|
- pip3 install --cache-dir='./.pipcache' -r requirements.txt
|
|
|
|
|
- pytest test.py
|
|
|
|
|
|
|
|
|
|
- name: coverage
|
|
|
|
|
image: python:3.8
|
|
|
|
|
environment:
|
|
|
|
|
PRODUCER_REDIS: cache
|
|
|
|
|
commands:
|
|
|
|
|
- pip3 install --cache-dir='./.pipcache' -r requirements.txt
|
|
|
|
|
- pip3 install --cache-dir='./.pipcache' coverage pytest
|
|
|
|
|
- coverage run -m pytest test.py
|
|
|
|
|
- coverage report -m
|
|
|
|
|
|
|
|
|
|
- name: rebuild-cache-with-filesystem
|
|
|
|
|
image: meltwater/drone-cache
|
|
|
|
|
|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
curl --header "Content-Type: application/json" \
|
|
|
|
|
--request POST \
|
|
|
|
|
--data '{"uuid":"c959ad81-58f9-4445-aab4-8f3d68aee1ad", "ip":"127.1.2.3"}' \
|
|
|
|
|
http://localhost:5000/ip
|
|
|
|
|
--request POST \
|
|
|
|
|
--data '{"uuid":"c959ad81-58f9-4445-aab4-8f3d68aee1ad", "ip":"127.1.2.3"}' \
|
|
|
|
|
http://localhost:5000/ip
|
|
|
|
|