# Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2
jobs:
  build:
    docker:
      - image: circleci/python:3.7.3@sha256:ff211e3a62d62e02f7cbc6fd34ef0cef983a0a5c1645bfc1019b2e45dcd9f36c
    working_directory: ~/repo

    steps:
      - checkout

      - restore_cache:
          keys:
            - cache-{{ checksum "Pipfile.lock" }}
            - cache-
      - run:
          name: Install dependencies
          command: |
            python3 -m venv .venv
            pip install --user pipenv
            pipenv sync --dev

      - save_cache:
          key: cache-{{ checksum "Pipfile.lock" }}
          paths:
            - ~/.local
            - ~/.cache

      - run:
          name: run tests
          command: |
            pipenv run flake8 bamboo_crawler tests
            export AWS_ACCESS_KEY_ID='1234'
            export AWS_SECRET_ACCESS_KEY='5678'
            pipenv run python setup.py test

      - store_artifacts:
          path: test-reports
          destination: test-reports

# Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2
jobs:
  build:
    docker:
      - image: circleci/python:3.7.3@sha256:10924f48325d36e856aea55f91695a5b1a0576e7d890b1b5d02764bbcf3b2b1a
    working_directory: ~/repo

    steps:
      - checkout

      - restore_cache:
          keys:
            - cache-{{ checksum "Pipfile.lock" }}
            - cache-
      - run:
          name: Install dependencies
          command: |
            python3 -m venv .venv
            pip install --user pipenv
            pipenv sync --dev

      - save_cache:
          key: cache-{{ checksum "Pipfile.lock" }}
          paths:
            - ~/.local
            - ~/.cache

      - run:
          name: run tests
          command: |
            pipenv run flake8 bamboo_crawler tests
            export AWS_ACCESS_KEY_ID='1234'
            export AWS_SECRET_ACCESS_KEY='5678'
            pipenv run python setup.py test

      - store_artifacts:
          path: test-reports
          destination: test-reports

Update circleci/python:3.7.3 Docker digest to 10924f4
Update circleci/python:3.7.3 Docker digest to 10924f4
