Skip to content

Commit dbd75d7

Browse files
committed
Create .travis.yml
Signed-off-by: Angela Randolph <[email protected]>
1 parent 5eea46a commit dbd75d7

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.travis.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
language: python
2+
python:
3+
- "3.6"
4+
os:
5+
- linux
6+
matrix:
7+
include:
8+
- env:
9+
- NAME= arduinoCI
10+
- IDE_VERSION=1.8.5
11+
# Use in CI/build/conf/path_config_travis.json
12+
- ARDUINO_IDE_PATH=$HOME/IDE/arduino
13+
install:
14+
# Install Arduino IDE
15+
- mkdir -p $ARDUINO_IDE_PATH
16+
- wget http://downloads.arduino.cc/arduino-$IDE_VERSION-linux64.tar.xz
17+
- tar xf arduino-$IDE_VERSION-linux64.tar.xz --strip-components=1 -C $ARDUINO_IDE_PATH
18+
- rm arduino-$IDE_VERSION-linux64.tar.xz
19+
# Install STM32 core supported by ST
20+
- cd $ARDUINO_IDE_PATH
21+
# Add json packages url to the Arduino IDE
22+
- ./arduino --save-prefs --pref "boardsmanager.additional.urls=https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json"
23+
# Install the latest core version
24+
- ./arduino --install-boards STM32:stm32
25+
- rm -fr $HOME/.arduino15/packages/STM32/hardware/stm32/*
26+
# Replace default core with the one being built
27+
- sudo ln -s $TRAVIS_BUILD_DIR $HOME/.arduino15/packages/STM32/hardware/stm32/*
28+
before_script:
29+
- cd $TRAVIS_BUILD_DIR/CI/build/
30+
- cp ./conf/path_config_travis.json ./path_config.json
31+
script:
32+
- python arduino-builder.py --travis
33+
after_failure:
34+
- echo " The build is failed. If script return a non-zero return status , we suggest you to take the above logs into consideration. Otherwise, consult the TRAVIS CI documentation to learn more about build failure"
35+
notifications:
36+
email:
37+
on_success: always
38+
on_failure: always

0 commit comments

Comments
 (0)