Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit b6a9007

Browse files
committed
Add Fedora tests
1 parent 412b64b commit b6a9007

File tree

4 files changed

+100
-0
lines changed

4 files changed

+100
-0
lines changed

.travis-fedora-build/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM fedora:latest
2+
RUN dnf install -y arduino cmake make redhat-lsb-core git
3+
RUN mkdir -p /root/.arduino15 /root/Arduino/libraries
4+
RUN git clone https://github.com/arduino-libraries/Servo.git /root/Arduino/libraries/Servo
5+
COPY preferences.txt /root/.arduino15/preferences.txt
6+
COPY run.sh /run.sh
7+
CMD /run.sh
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
board=yun
2+
browser=mozilla
3+
build.warn_data_percentage=75
4+
console=true
5+
console.auto_clear=true
6+
console.error.file=stderr.txt
7+
console.length=500
8+
console.lines=4
9+
console.output.file=stdout.txt
10+
editor.antialias=true
11+
editor.auto_close_braces=true
12+
editor.caret.blink=true
13+
editor.code_folding=false
14+
editor.divider.size=0
15+
editor.external=false
16+
editor.font=Monospaced,plain,12
17+
editor.indent=true
18+
editor.invalid=false
19+
editor.keys.alternative_cut_copy_paste=true
20+
editor.keys.home_and_end_beginning_end_of_doc=false
21+
editor.keys.shift_backspace_is_delete=true
22+
editor.languages.current=
23+
editor.linenumbers=false
24+
editor.save_on_verify=true
25+
editor.tabs.expand=true
26+
editor.tabs.size=2
27+
editor.window.height.default=600
28+
editor.window.height.min=290
29+
editor.window.width.default=500
30+
editor.window.width.min=400
31+
export.applet.separate_jar_files=false
32+
export.application.fullscreen=false
33+
export.application.platform=true
34+
export.application.stop=true
35+
export.delete_target_folder=true
36+
gui.scale=auto
37+
last.ide.1.8.9.daterun=1555970130
38+
last.ide.1.8.9.hardwarepath=/usr/share/arduino/hardware
39+
last.screen.height=1028
40+
last.screen.width=1680
41+
last.sketch.count=0
42+
last.sketch.default.location=590,214,500,592,397,0
43+
last.sketch.default.path=/tmp/untitled309991618.tmp/sketch_apr22a/sketch_apr22a.ino
44+
launcher=xdg-open
45+
platform.auto_file_type_associations=true
46+
preferences.readonly=false
47+
preproc.color_datatype=true
48+
preproc.enhanced_casting=true
49+
preproc.imports.list=java.applet.*,java.awt.Dimension,java.awt.Frame,java.awt.event.MouseEvent,java.awt.event.KeyEvent,java.awt.event.FocusEvent,java.awt.Image,java.io.*,java.net.*,java.text.*,java.util.*,java.util.zip.*,java.util.regex.*
50+
preproc.output_parse_tree=false
51+
preproc.save_build_files=false
52+
preproc.substitute_floats=true
53+
preproc.substitute_unicode=true
54+
preproc.web_colors=true
55+
programmer=arduino:avrispmkii
56+
run.display=1
57+
run.options=
58+
run.options.memory=false
59+
run.options.memory.initial=64
60+
run.options.memory.maximum=256
61+
run.present.bgcolor=#666666
62+
run.present.exclusive=false
63+
run.present.stop.color=#cccccc
64+
serial.databits=8
65+
serial.debug_rate=9600
66+
serial.line_ending=1
67+
serial.parity=N
68+
serial.stopbits=1
69+
sketchbook.path=/root/Arduino
70+
software=ARDUINO
71+
target_package=archlinux-arduino
72+
target_platform=avr
73+
update.check=true
74+
update.id=4828131701236159116
75+
update.last=1555970134196
76+
upload.using=bootloader
77+
upload.verify=true

.travis-fedora-build/run.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
mkdir build
3+
cd build
4+
cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Arduino-Toolchain.cmake -DAUTO_SET_SKETCHBOOK_PATH=ON ../examples/
5+
make

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ env:
88
matrix:
99
- ARDUINO_SDK_VERSION=1.6.10
1010
- ARDUINO_SDK_VERSION=1.8.7
11+
matrix:
12+
include:
13+
- os: linux
14+
service: docker
15+
env: TEST_FEDORA=TRUE
16+
addons: {}
17+
before_install:
18+
- docker build -t fedorabuild .travis-fedora-build
19+
install: []
20+
script:
21+
- docker run -v "$TRAVIS_BUILD_DIR/cmake":/cmake -v "$TRAVIS_BUILD_DIR/examples":/examples fedorabuild
1122
cache:
1223
directories:
1324
- $HOME/$ARDUINO_SDK_BASE_PATH-$ARDUINO_SDK_VERSION

0 commit comments

Comments
 (0)