Created
June 8, 2018 14:00
-
-
Save timmo001/9ddf53061a7c4a508604dfa4ab923261 to your computer and use it in GitHub Desktop.
Platform IO GitLab CI Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: python:2 | |
stages: | |
- build | |
# Change pip's cache directory to be inside the project directory since we can | |
# only cache local items. | |
variables: | |
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache" | |
# Pip's cache doesn't store the python packages | |
# https://pip.pypa.io/en/stable/reference/pip_install/#caching | |
# | |
# If you want to also cache the installed packages, you have to install | |
# them in a virtualenv and cache it as well. | |
cache: | |
paths: | |
- .cache/pip | |
- venv/ | |
- ~/.platformio | |
before_script: | |
- python -V # Print out python version for debugging | |
- pip install -U platformio | |
- platformio update | |
run: | |
stage: build | |
script: | |
- mv src/setup-template.h src/setup.h | |
- platformio run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment