mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Adding test instructions to circleci.
This commit is contained in:
parent
f442e94183
commit
dbcbe98918
1 changed files with 13 additions and 3 deletions
|
|
@ -9,14 +9,24 @@ jobs:
|
|||
# Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
|
||||
# See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor
|
||||
docker:
|
||||
- image: cimg/base:stable
|
||||
- image: cimg/python:3.8
|
||||
environment:
|
||||
DATABASE_URL: postgresql://postgres@localhost/wrolpi?sslmode=disable
|
||||
- image: cimg/postgres:12.0
|
||||
# Add steps to the job
|
||||
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: "Say hello"
|
||||
command: "echo Hello, World!"
|
||||
command: "pip install -r requirements.txt"
|
||||
- run:
|
||||
command: 'pytest -svv wrolpi modules'
|
||||
- save_cache:
|
||||
key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }}
|
||||
paths:
|
||||
- ".venv"
|
||||
- "/usr/local/bin"
|
||||
- "/usr/local/lib/python3.6/site-packages"
|
||||
|
||||
# Invoke jobs via workflows
|
||||
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue