forked from chrismayu/MarlinDev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
110 lines (109 loc) · 8.67 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
---
language: c
before_install:
# Travis runs a detached head. We need to find the current branch
- git checkout `git branch --contains HEAD | grep -v '*'`
# Also tags for the root(s) of the minor version(s)
- git fetch origin --tags
- mkdir ~/bin
install:
# Install arduino 1.6.6
- wget http://downloads-02.arduino.cc/arduino-1.6.6-linux64.tar.xz
- tar Jxf arduino-1.6.6-linux64.tar.xz
- sudo mv arduino-1.6.6 /usr/local/share/arduino
- ln -s /usr/local/share/arduino/arduino ~/bin/arduino
# Our custom build commands
- wget https://raw.githubusercontent.com/MarlinFirmware/Marlin/RC/LinuxAddons/bin/generate_version_header_for_marlin -q -O ~/bin/generate_version_header_for_marlin
- chmod +x ~/bin/*
- ls -la ~/bin
# install our platform
- cd
- git clone https://github.com/MarlinFirmware/MarlinDev.git
- cd MarlinDev
- git checkout IDE_1.6.6
- mv hardware/marlin /usr/local/share/arduino/hardware
# Install astyle
- wget https://github.com/timonwong/astyle-mirror/archive/master.zip
- unzip master.zip
- cd astyle-mirror-master/build/gcc/
- make prefix=$HOME astyle install
- cd ../../..
- rm -rf astyle-mirror-master
- ln -s $TRAVIS_BUILD_DIR /usr/local/share/arduino/libraries/MarlinFirmware
before_script:
# arduino requires an X server even with command line
# https://github.com/arduino/Arduino/issues/1981
- Xvfb :1 -screen 0 1024x768x16 &> xvfb.log &
# change back to home directory for compiling
- cd $TRAVIS_BUILD_DIR
# Check style
- ~/bin/astyle --recursive --options=.astylerc -r "*.h" "*.cpp"
- find . -type f | grep orig
script:
# Abort on style errors
# if [ "0" != `find . -name "*.orig" | wc -l` ] ; then echo "Improperly styled source -- run astyle" ; exit -999; fi
# Relaxed Travis check
# if [ "0" != `find . -name "*.orig" | wc -l` ] ; then echo "Improperly styled source -- run astyle" ; fi
# build default config
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/RAMPS_13_EFB_default.h" examples/MarlinFirmware/MarlinFirmware.ino
# add sensor for bed
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/TEMP_SENSOR_BED.h" examples/MarlinFirmware/MarlinFirmware.ino
# change number of extruders to 2
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/dual_extruder.h" examples/MarlinFirmware/MarlinFirmware.ino
# change number of extruders to 3, needs to be a board with 3 extruders defined in pins.h
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/triple_extruder.h" examples/MarlinFirmware/MarlinFirmware.ino
# enable PIDTEMPBED
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/PIDTEMPBED.h" examples/MarlinFirmware/MarlinFirmware.ino
# enable AUTO_BED_LEVELING
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/AUTO_BED_LEVELING_FEATURE.h" examples/MarlinFirmware/MarlinFirmware.ino
# enable AUTO_BED_LEVELING with servos
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/SERVOS.h" examples/MarlinFirmware/MarlinFirmware.ino
# enable EEPROM_SETTINGS & EEPROM_CHITCHAT
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/EEPROM.h" examples/MarlinFirmware/MarlinFirmware.ino
### LCDS ###
# ULTIMAKERCONTROLLER
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/ULTIMAKERCONTROLLER.h" examples/MarlinFirmware/MarlinFirmware.ino
# MAKRPANEL
# Needs to use melzi and sanguino hardware
#- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/MAKRPANEL.h" examples/MarlinFirmware/MarlinFirmware.ino
# REPRAP_DISCOUNT_SMART_CONTROLLER
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/REPRAP_DISCOUNT_SMART_CONTROLLER.h" examples/MarlinFirmware/MarlinFirmware.ino
# G3D_PANE
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/G3D_PANEL.h" examples/MarlinFirmware/MarlinFirmware.ino
# REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER.h" examples/MarlinFirmware/MarlinFirmware.ino
# REPRAPWORLD_KEYPAD
# Cant find configuration details to get it to compile
#- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/ULTRA_LCD.h" examples/MarlinFirmware/MarlinFirmware.ino
# RA_CONTROL_PANEL
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/RA_CONTROL_PANEL.h" examples/MarlinFirmware/MarlinFirmware.ino
### I2C PANELS ###
# LCD_I2C_SAINSMART_YWROBOT
# Failing at the moment needs different library
#- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/LCD_I2C_SAINSMART_YWROBOT.h" examples/MarlinFirmware/MarlinFirmware.ino
# LCD_I2C_PANELOLU2
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/LCD_I2C_PANELOLU2.h" examples/MarlinFirmware/MarlinFirmware.ino
# LCD_I2C_VIKI
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/LCD_I2C_VIKI.h" examples/MarlinFirmware/MarlinFirmware.ino
# Enable filament sensor
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/FILAMENT_SENSOR.h" examples/MarlinFirmware/MarlinFirmware.ino
# Enable filament sensor with LCD display
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/FILAMENT_LCD_DISPLAY.h" examples/MarlinFirmware/MarlinFirmware.ino
# Enable COREXY
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/COREXY.h" examples/MarlinFirmware/MarlinFirmware.ino
# Enable COREXZ
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/COREXZ.h" examples/MarlinFirmware/MarlinFirmware.ino
# Enable Z_DUAL_STEPPER_DRIVERS, Z_DUAL_ENDSTOPS
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/travis/Z_DUAL_ENDSTOPS.h" examples/MarlinFirmware/MarlinFirmware.ino
######## Example Configurations ##############
# Delta Config (generic)
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/deprecated_configurations/delta/generic/Configuration.h" examples/MarlinFirmware/MarlinFirmware.ino
# Delta Config (Mini Kossel)
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/deprecated_configurations/delta/kossel_mini/Configuration.h" examples/MarlinFirmware/MarlinFirmware.ino
# SCARA Config
- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/deprecated_configurations/SCARA/Configuration.h" examples/MarlinFirmware/MarlinFirmware.ino
######## Board Types #############
# Makibox Config need to check board type for Teensy++ 2.0
#- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:BrainwavePro --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/deprecated_configurations/makibox/Configuration.h" examples/MarlinFirmware/MarlinFirmware.ino
# tvrrug Config need to check board type for sanguino atmega644p
#- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:sanguino --pref build.unique_id_flags=-DCONFIGURATION_FILE="configurations/deprecated_configurations/tvrrug/Round2/Configuration.h" examples/MarlinFirmware/MarlinFirmware.ino