Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rc-switch
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
c3pb
rc-switch
Commits
862c23e0
Commit
862c23e0
authored
8 years ago
by
bau-sec
Browse files
Options
Downloads
Patches
Plain Diff
Added Arduino IDE build and more boards (attiny24/25, esp01, uno) to Travis CI tests.
parent
2423a778
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.travis.yml
+57
-14
57 additions, 14 deletions
.travis.yml
with
57 additions
and
14 deletions
.travis.yml
+
57
−
14
View file @
862c23e0
language
:
python
language
:
c
python
:
python
:
-
"
2.7"
-
"
2.7"
# Cache PlatformIO packages using Travis CI container-based infrastructure
# Cache PlatformIO packages using Travis CI container-based infrastructure
sudo
:
false
cache
:
cache
:
pip
:
true
directories
:
directories
:
-
"
~/.platformio"
-
"
~/.platformio"
env
:
env
:
-
PLATFORMIO_CI_SRC=examples/Webserver/
-
>
-
PLATFORMIO_CI_SRC=examples/ReceiveDemo_Simple/
PLATFORMIO_CI_SRC=$PWD/examples/Webserver
-
PLATFORMIO_CI_SRC=examples/TypeC_Intertechno/
ARDUINOIDE_CI_SRC=$PLATFORMIO_CI_SRC/Webserver.ino
-
PLATFORMIO_CI_SRC=examples/TypeD_REV/
BOARDS="--board=diecimilaatmega328 --board=uno --board=esp01"
-
PLATFORMIO_CI_SRC=examples/TypeA_WithDIPSwitches/
-
>
-
PLATFORMIO_CI_SRC=examples/TypeA_WithDIPSwitches_Lightweight/
PLATFORMIO_CI_SRC=$PWD/examples/ReceiveDemo_Simple
-
PLATFORMIO_CI_SRC=examples/TypeB_WithRotaryOrSlidingSwitches/
ARDUINOIDE_CI_SRC=$PLATFORMIO_CI_SRC/ReceiveDemo_Simple.ino
-
PLATFORMIO_CI_SRC=examples/SendDemo/
BOARDS="--board=diecimilaatmega328 --board=uno --board=esp01"
-
PLATFORMIO_CI_SRC=examples/ReceiveDemo_Advanced/
-
>
PLATFORMIO_CI_SRC=$PWD/examples/TypeC_Intertechno
ARDUINOIDE_CI_SRC=$PLATFORMIO_CI_SRC/TypeC_Intertechno.ino
BOARDS="--board=diecimilaatmega328 --board=uno --board=esp01 --board=attiny25 --board=attiny24"
-
>
PLATFORMIO_CI_SRC=$PWD/examples/TypeD_REV
ARDUINOIDE_CI_SRC=$PLATFORMIO_CI_SRC/TypeD_REV.ino
BOARDS="--board=diecimilaatmega328 --board=uno --board=esp01 --board=attiny25 --board=attiny24"
-
>
PLATFORMIO_CI_SRC=$PWD/examples/TypeA_WithDIPSwitches
ARDUINOIDE_CI_SRC=$PLATFORMIO_CI_SRC/TypeA_WithDIPSwitches.ino
BOARDS="--board=diecimilaatmega328 --board=uno --board=esp01 --board=attiny25 --board=attiny24"
-
>
PLATFORMIO_CI_SRC=$PWD/examples/TypeA_WithDIPSwitches_Lightweight
ARDUINOIDE_CI_SRC=$PLATFORMIO_CI_SRC/TypeA_WithDIPSwitches_Lightweight.ino
BOARDS="--board=diecimilaatmega328 --board=uno --board=esp01 --board=attiny25 --board=attiny24"
-
>
PLATFORMIO_CI_SRC=$PWD/examples/TypeB_WithRotaryOrSlidingSwitches
ARDUINOIDE_CI_SRC=$PLATFORMIO_CI_SRC/TypeB_WithRotaryOrSlidingSwitches.ino
BOARDS="--board=diecimilaatmega328 --board=uno --board=esp01 --board=attiny25 --board=attiny24"
-
>
PLATFORMIO_CI_SRC=$PWD/examples/SendDemo
ARDUINOIDE_CI_SRC=$PLATFORMIO_CI_SRC/SendDemo.ino
BOARDS="--board=diecimilaatmega328 --board=uno --board=esp01"
-
>
PLATFORMIO_CI_SRC=$PWD/examples/ReceiveDemo_Advanced
ARDUINOIDE_CI_SRC=$PLATFORMIO_CI_SRC/ReceiveDemo_Advanced.ino
BOARDS="--board=diecimilaatmega328 --board=uno --board=esp01"
before_install
:
# Arduino IDE
-
"
/sbin/start-stop-daemon
--start
--quiet
--pidfile
/tmp/custom_xvfb_1.pid
--make-pidfile
--background
--exec
/usr/bin/Xvfb
--
:1
-ac
-screen
0
1280x1024x16"
-
sleep
3
-
export DISPLAY=:1.0
-
wget http://downloads.arduino.cc/arduino-1.6.9-linux64.tar.xz
-
tar xf arduino-1.6.9-linux64.tar.xz
-
sudo mv arduino-1.6.9 /usr/local/share/arduino
-
sudo ln -s /usr/local/share/arduino/arduino /usr/local/bin/arduino
install
:
install
:
-
pip install -U platformio
# Arduino IDE
-
ln -s $PWD /usr/local/share/arduino/libraries/rc-switch
# PlatformIO
-
sudo pip install -U platformio
script
:
script
:
-
platformio ci --lib="." --board=diecimilaatmega328
# Arduino IDE
-
arduino --verify --board arduino:avr:uno ${ARDUINOIDE_CI_SRC}
# PlatformIO
-
platformio ci --lib="." ${BOARDS}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment