# 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:07d4860bef011cb9f133bdb967fc707be56780968db7091f2770e97bebfbfd44
    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:d95601afe4bf164ac9356bef5a1fa4fe027e5cd95e65c846bf610be4dc2a4de3
    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 d95601a
Update circleci/python:3.7.3 Docker digest to d95601a
