|
@@ -0,0 +1,38 @@
|
|
1
|
+---
|
|
2
|
+language: c
|
|
3
|
+
|
|
4
|
+before_install:
|
|
5
|
+ - pwd
|
|
6
|
+ - wget https://bootstrap.pypa.io/get-pip.py
|
|
7
|
+ - wget https://bintray.com/artifact/download/olikraus/u8glib/u8glib_arduino_v1.17.zip
|
|
8
|
+install:
|
|
9
|
+ - sudo python get-pip.py
|
|
10
|
+ - sudo pip install ino
|
|
11
|
+ # add ppa for newer version of Arduino than available in ubuntu 12.04
|
|
12
|
+ - sudo add-apt-repository ppa:michael-gruz/elektronik -y
|
|
13
|
+ - sudo apt-get update -q
|
|
14
|
+ - sudo apt-get install arduino
|
|
15
|
+before_script:
|
|
16
|
+ # add U8glib, LiquidCrystal_I2C & LiquidTWI2 libraries
|
|
17
|
+ - sudo unzip u8glib_arduino_v1.17.zip -d /usr/share/arduino/libraries/
|
|
18
|
+ - cd /usr/share/arduino/libraries/
|
|
19
|
+ - sudo git clone https://github.com/kiyoshigawa/LiquidCrystal_I2C.git
|
|
20
|
+ - ls -la
|
|
21
|
+ - ls -la LiquidCrystal_I2C/
|
|
22
|
+ - sudo git clone https://github.com/lincomatic/LiquidTWI2.git
|
|
23
|
+ # remove Robot_Control library to stop compile error!
|
|
24
|
+ - sudo rm -rf /usr/share/arduino/libraries/Robot_Control
|
|
25
|
+ # change back to home directory for compiling
|
|
26
|
+ - cd /home/travis/build/ErikZalm/Marlin
|
|
27
|
+ # ino needs files in src directory
|
|
28
|
+ - ln -s Marlin src
|
|
29
|
+ # remove Marlin.pde as it confuses ino after it finds Marlin.ino
|
|
30
|
+ - rm Marlin/Marlin.pde
|
|
31
|
+script:
|
|
32
|
+ - ino build -m mega2560
|
|
33
|
+ - cp Marlin/example_configurations/delta/Configuration* Marlin/
|
|
34
|
+ - rm -rf .build/
|
|
35
|
+ - ino build -m mega2560
|
|
36
|
+ - sed -i 's/#define MOTHERBOARD BOARD_RAMPS_13_EFB/#define MOTHERBOARD BOARD_DUEMILANOVE_328P/g' Marlin/Configuration.h
|
|
37
|
+ - rm -rf .build/
|
|
38
|
+ - ino build -m atmega328
|