O'Reilly logo

Serverless Design Patterns and Best Practices by Brian Zambrano

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring CircleCI builds

There is a plethora of options and controls that you can configure within CircleCI. There are only a few settings we'll need to control from within the CircleCI web interface. Everything else will be controlled via a config.yml configuration file, which we will add to the repository.

Our first step is putting together a .circleci/config.yml file. The .circleci/ directory lives in the root of our repository. The following code block shows the configuration to run unit tests in for our REST API, which is located in the ch2/ directory of the repository:

version: 2 jobs:  build:    docker:      - image: verypossible/serverless:1.25.0-python3      - image: postgres    environment:      - ENV: circleci    steps:      - checkout      - restore_cache:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required