This backports from topic-docker the base image, which we can now use in Circle to MASSIVELY speed up our CI situation. The base image can currently only be pushed by @klardotsh as nobody else has access to the Docker Hub org, but that can change in the future.
101 lines
2.0 KiB
YAML
101 lines
2.0 KiB
YAML
version: 2
|
|
jobs:
|
|
test:
|
|
docker:
|
|
- image: 'kmkfw/base'
|
|
|
|
environment:
|
|
KMK_TEST: 1
|
|
PIPENV_VENV_IN_PROJECT: 1
|
|
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
keys:
|
|
- v2-kmk-venv-{{ checksum "Pipfile.lock" }}
|
|
|
|
- run: make test
|
|
|
|
build_feather_m4_express:
|
|
docker:
|
|
- image: 'kmkfw/base'
|
|
|
|
environment:
|
|
KMK_TEST: 1
|
|
PIPENV_VENV_IN_PROJECT: 1
|
|
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
keys:
|
|
- v2-kmk-venv-{{ checksum "Pipfile.lock" }}
|
|
|
|
- run: make SKIP_KEYMAP_VALIDATION=1 USER_KEYMAP=user_keymaps/noop.py build-feather-m4-express
|
|
|
|
build_itsybitsy_m4_express:
|
|
docker:
|
|
- image: 'kmkfw/base'
|
|
|
|
environment:
|
|
KMK_TEST: 1
|
|
PIPENV_VENV_IN_PROJECT: 1
|
|
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
keys:
|
|
- v2-kmk-venv-{{ checksum "Pipfile.lock" }}
|
|
|
|
- run: make SKIP_KEYMAP_VALIDATION=1 USER_KEYMAP=user_keymaps/noop.py build-itsybitsy-m4-express
|
|
|
|
build_pyboard:
|
|
docker:
|
|
- image: 'kmkfw/base'
|
|
|
|
environment:
|
|
KMK_TEST: 1
|
|
PIPENV_VENV_IN_PROJECT: 1
|
|
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
keys:
|
|
- v2-kmk-venv-{{ checksum "Pipfile.lock" }}
|
|
|
|
- run: make SKIP_KEYMAP_VALIDATION=1 USER_KEYMAP=user_keymaps/noop.py build-pyboard
|
|
|
|
workflows:
|
|
version: 2
|
|
build-deploy:
|
|
jobs:
|
|
- test:
|
|
filters:
|
|
branches:
|
|
only: /.*/
|
|
tags:
|
|
only: /.*/
|
|
- build_feather_m4_express:
|
|
filters:
|
|
branches:
|
|
only: /.*/
|
|
tags:
|
|
only: /.*/
|
|
requires:
|
|
- test
|
|
- build_itsybitsy_m4_express:
|
|
filters:
|
|
branches:
|
|
only: /.*/
|
|
tags:
|
|
only: /.*/
|
|
requires:
|
|
- test
|
|
- build_pyboard:
|
|
filters:
|
|
branches:
|
|
only: /.*/
|
|
tags:
|
|
only: /.*/
|
|
requires:
|
|
- test
|