---
version: '2'
services:
  unit-tests:
    build:
      context: ../../../
      dockerfile: tools/docker-compose/unit-tests/Dockerfile
    image: gcr.io/ansible-tower-engineering/unit-test-runner:latest
    environment:
      SWIG_FEATURES: "-cpperraswarn -includeall -I/usr/include/openssl"
      TEST_DIRS: awx/main/tests/functional awx/main/tests/unit awx/conf/tests awx/sso/tests
    command: ["make test"]
    volumes:
      - ../../../:/tower_devel

---
version: '2'
services:
  unit-tests:
    build:
      context: ../../../
      dockerfile: tools/docker-compose/unit-tests/Dockerfile
    image: gcr.io/ansible-tower-engineering/unit-test-runner:${GIT_BRANCH}
    environment:
      SWIG_FEATURES: "-cpperraswarn -includeall -I/usr/include/openssl"
      TEST_DIRS: awx/main/tests/functional awx/main/tests/unit awx/conf/tests awx/sso/tests
    command: ["make test"]
    volumes:
      - ../../../:/tower_devel

Rebuild unit-test image for every branch
Rebuild unit-test image for every branch

This variable is set by Jenkins, you'll have to set it manually if you build locally.
