Skip to content

Commit

Permalink
Add circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
koszti committed Jun 9, 2020
1 parent d7b6e17 commit 3809cea
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
version: 2

references:
container_config: &container_config
docker:
# Main Python container
- image: circleci/python:3.7.7

jobs:
build:
<<: *container_config

steps:
- checkout
- run:
name: 'Setup virtual environment'
command: |
python3 -m venv venv
. venv/bin/activate
pip install --upgrade pip
pip install -e .[test]
- run:
name: 'Pylinting'
command: |
. venv/bin/activate
pylint target_bigquery -d C,W,unexpected-keyword-arg,duplicate-code
- run:
name: 'Unit Tests'
command: |
. venv/bin/activate
export LOGGING_CONF_FILE=$(pwd)/sample_logging.conf
nosetests --where=tests/unit
# Integration test currently turned off
#- run:
# name: 'Integration Tests'
# command: |
# . venv/bin/activate
# export LOGGING_CONF_FILE=$(pwd)/sample_logging.conf
# nosetests --where=tests/integration/

workflows:
version: 2
build:
jobs:
- build

0 comments on commit 3809cea

Please sign in to comment.