CircleCI: Ensure all boards can at least compile a hex on each commit

This commit is contained in:
Josh Klar
2018-09-17 13:25:37 -07:00
parent a69f180260
commit 904e7641e7
3 changed files with 124 additions and 13 deletions

View File

@@ -12,17 +12,73 @@ jobs:
- checkout
- restore_cache:
keys:
- v1-kmk-lint-{{ checksum "Pipfile.lock" }}
- v1-kmk-venv-{{ checksum "Pipfile.lock" }}
- run: pip install pipenv==2018.7.1
- run: pipenv install --dev
- run: pipenv run flake8
- run: make lint
- save_cache:
key: v1-kmk-lint-{{ checksum "Pipfile.lock" }}
key: v1-kmk-venv-{{ checksum "Pipfile.lock" }}
paths:
- .venv
build_pyboard:
docker:
- image: 'python:3.7'
environment:
KMK_TEST: 1
PIPENV_VENV_IN_PROJECT: 1
steps:
- checkout
- restore_cache:
keys:
- v1-kmk-venv-{{ checksum "Pipfile.lock" }}
- run: pip install pipenv==2018.7.1
- run: apt-get update && apt-get install -y gcc-arm-none-eabi gettext wget unzip
- run: make BOARD=boards/noop.py build-pyboard
build_feather_nrf52832:
docker:
- image: 'python:3.7'
environment:
KMK_TEST: 1
PIPENV_VENV_IN_PROJECT: 1
steps:
- checkout
- restore_cache:
keys:
- v1-kmk-venv-{{ checksum "Pipfile.lock" }}
- run: pip install pipenv==2018.7.1
- run: apt-get update && apt-get install -y gcc-arm-none-eabi gettext wget unzip
- run: make BOARD=boards/noop.py build-feather-nrf52832
build_teensy_31:
docker:
- image: 'python:3.7'
environment:
KMK_TEST: 1
PIPENV_VENV_IN_PROJECT: 1
steps:
- checkout
- restore_cache:
keys:
- v1-kmk-venv-{{ checksum "Pipfile.lock" }}
- run: pip install pipenv==2018.7.1
- run: apt-get update && apt-get install -y gcc-arm-none-eabi gettext wget unzip
- run: make BOARD=boards/noop.py build-teensy-3.1
workflows:
version: 2
build-deploy:
@@ -33,3 +89,27 @@ workflows:
only: /.*/
tags:
only: /.*/
- build_pyboard:
filters:
branches:
only: /.*/
tags:
only: /.*/
requires:
- lint
- build_feather_nrf52832:
filters:
branches:
only: /.*/
tags:
only: /.*/
requires:
- lint
- build_teensy_31:
filters:
branches:
only: /.*/
tags:
only: /.*/
requires:
- lint