Skip to content

Instantly share code, notes, and snippets.

@timmo001
Created June 8, 2018 14:00
Show Gist options
  • Save timmo001/9ddf53061a7c4a508604dfa4ab923261 to your computer and use it in GitHub Desktop.
Save timmo001/9ddf53061a7c4a508604dfa4ab923261 to your computer and use it in GitHub Desktop.
Platform IO GitLab CI Script
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