Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Gitlab CI
Browse files Browse the repository at this point in the history
  • Loading branch information
OttoWinter committed Sep 23, 2018
1 parent 668b1b1 commit af4180d
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.pioenvs
.piolibdeps
CMakeListsPrivate.txt

# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff:
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/dictionaries

# Sensitive or high-churn files:
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.xml
.idea/**/dataSources.local.xml
.idea/**/dynamic.xml

# CMake
cmake-build-debug/
cmake-build-release/

# pyenv
.python-version
.clang_complete
.gcc-flags.json
.git/
39 changes: 39 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
# Gitlab CI configuration for my custom build server. For contributors,
# please use .travis.yml

stages:
# - lint
- test

.test: &test
tags:
- python2.7
- esphomelib-test
stage: test
cache:
paths:
- /root/.platformio
- .piolibdeps

test-basic:
<<: *test
script:
- |
platformio run \
-e livingroom \
-e livingroom8266
test-advanced:
<<: *test
script:
- |
platformio run \
-e dht-dallas-sensors \
-e switch-binarysensor \
-e fan-example \
-e lights \
-e custombmp180 \
-e i2c-sensors \
-e pcf8574 \
-e fastled
8 changes: 8 additions & 0 deletions docker/Dockerfile.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM python:2.7
MAINTAINER Otto Winter <contact@otto-winter.com>

RUN pip install --no-cache-dir platformio && \
platformio settings set enable_telemetry No

COPY docker/platformio.ini /
RUN platformio run -e espressif32 -e espressif8266; exit 0
12 changes: 12 additions & 0 deletions docker/platformio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
; This file allows the docker build file to install the required platformio
; platforms

[env:espressif8266]
platform = espressif8266
board = nodemcuv2
framework = arduino

[env:espressif32]
platform = espressif32
board = nodemcu-32s
framework = arduino

0 comments on commit af4180d

Please sign in to comment.