Skip to content

Commit 5f392a1

Browse files
committed
configuring travis, hopefully
1 parent f2765e9 commit 5f392a1

File tree

3 files changed

+21
-69
lines changed

3 files changed

+21
-69
lines changed

.travis.yml

Lines changed: 9 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,9 @@
1-
# Continuous Integration (CI) is the practice, in software
2-
# engineering, of merging all developer working copies with a shared mainline
3-
# several times a day < http://docs.platformio.org/page/ci/index.html >
4-
#
5-
# Documentation:
6-
#
7-
# * Travis CI Embedded Builds with PlatformIO
8-
# < https://docs.travis-ci.com/user/integration/platformio/ >
9-
#
10-
# * PlatformIO integration with Travis CI
11-
# < http://docs.platformio.org/page/ci/travis.html >
12-
#
13-
# * User Guide for `platformio ci` command
14-
# < http://docs.platformio.org/page/userguide/cmd_ci.html >
15-
#
16-
#
17-
# Please choice one of the following templates (proposed below) and uncomment
18-
# it (remove "# " before each line) or use own configuration according to the
19-
# Travis CI documentation (see above).
20-
#
21-
22-
23-
#
24-
# Template #1: General project. Test it using existing `platformio.ini`.
25-
#
26-
27-
# language: python
28-
# python:
29-
# - "2.7"
30-
#
31-
# sudo: false
32-
# cache:
33-
# directories:
34-
# - "~/.platformio"
35-
#
36-
# install:
37-
# - pip install -U platformio
38-
#
39-
# script:
40-
# - platformio run
41-
42-
43-
#
44-
# Template #2: The project is intended to by used as a library with examples
45-
#
46-
47-
# language: python
48-
# python:
49-
# - "2.7"
50-
#
51-
# sudo: false
52-
# cache:
53-
# directories:
54-
# - "~/.platformio"
55-
#
56-
# env:
57-
# - PLATFORMIO_CI_SRC=path/to/test/file.c
58-
# - PLATFORMIO_CI_SRC=examples/file.ino
59-
# - PLATFORMIO_CI_SRC=path/to/test/directory
60-
#
61-
# install:
62-
# - pip install -U platformio
63-
#
64-
# script:
65-
# - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N
1+
sudo: false
2+
language: cpp
3+
matrix:
4+
include:
5+
- env: SCRIPT=platformioEsp8266 BOARD=d1_mini
6+
cache:
7+
directories:
8+
- "~/.platformio"
9+
script: scripts/travis/$SCRIPT.sh

platformio.ini

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
; Please visit documentation for the other options and examples
99
; http://docs.platformio.org/page/projectconf.html
1010

11+
lib_deps_external = ArduinoJson
12+
1113
[env:d1_mini]
1214
platform = espressif8266
1315
board = d1_mini
1416
framework = arduino
15-
16-
lib_deps =
17-
# Using library Name
18-
ArduinoJson

scripts/travis/platformioEsp8266.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh -eux
2+
3+
pip install --user platformio
4+
5+
rm -r test
6+
7+
for EXAMPLE in $PWD/examples/ESP8266/*/*.ino;
8+
do
9+
platformio ci $EXAMPLE -l '.' -b $BOARD
10+
done

0 commit comments

Comments
 (0)