Skip to content

Commit

Permalink
feat: Added test in circle ci, travis removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Suneet Srivastava committed Nov 25, 2020
1 parent 4f000cc commit 5cc7162
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 42 deletions.
42 changes: 42 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,44 @@ jobs:
- ./.pytype
key: v1-pytype

test:
docker:
- image: circleci/python:3.7.4-node
environment:
APP_CONFIG: config.TestingConfig
DATABASE_URL: postgresql://postgres@localhost/test
TEST_DATABASE_URL: postgresql://postgres@localhost/test

- image: circleci/postgres:12-postgis-ram
environment:
POSTGRES_USER: postgres
POSTGRES_DB: test
POSTGRES_HOST_AUTH_METHOD: trust

- image: circleci/redis:5.0.6-alpine

working_directory: ~/code

steps:
- checkout

- run:
command: cat requirements/*.txt > requirements/combined.txt

# Download and cache dependencies
- restore_cache:
keys:
- v1.3-dependencies-{{ checksum "requirements/combined.txt" }}-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
l- v1.3-dependencies-

- run:
command: pytest tests -v --cov=.

- run:
command: bash <(curl -s https://codecov.io/bash)
when: on_success

workflows:
version: 2
build-and-test:
Expand All @@ -119,3 +157,7 @@ workflows:
- pytype:
requires:
- dependencies
- test:
requires:
- dependencies

42 changes: 0 additions & 42 deletions .travis.yml

This file was deleted.

0 comments on commit 5cc7162

Please sign in to comment.