Browse Source

Added compile checks for lots of defines in Configuration.h

monkeydave 9 years ago
parent
commit
07b85f8b92
1 changed files with 122 additions and 0 deletions
  1. 122
    0
      .travis.yml

+ 122
- 0
.travis.yml View File

@@ -29,10 +29,132 @@ before_script:
29 29
   # remove Marlin.pde as it confuses ino after it finds Marlin.ino
30 30
   - rm Marlin/Marlin.pde
31 31
 script:
32
+  # build default config
32 33
   - ino build -m mega2560
34
+  # backup configuration.h
35
+  - cp Marlin/Configuration.h Marlin/Configuration.h.backup
36
+  - cp Marlin/Configuration_adv.h Marlin/Configuration_adv.h.backup
37
+  # change extruder numbers from 1 to 2
38
+  - sed -i 's/#define EXTRUDERS 1/#define EXTRUDERS 2/g' Marlin/Configuration.h
39
+  - rm -rf .build/
40
+  - ino build -m mega2560
41
+  # change extruder numbers from 2 to 3
42
+  - sed -i 's/#define EXTRUDERS 2/#define EXTRUDERS 3/g' Marlin/Configuration.h
43
+  - rm -rf .build/
44
+  - ino build -m mega2560
45
+  # enable PIDTEMPBED 
46
+  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
47
+  - sed -i 's/\/\/#define PIDTEMPBED/#define PIDTEMPBED/g' Marlin/Configuration.h
48
+  - rm -rf .build/
49
+  - ino build -m mega2560
50
+  # enable THERMAL RUNAWAY PROTECTION for extruders & bed
51
+  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
52
+  - sed -i 's/\/\/#define THERMAL_RUNAWAY_PROTECTION_PERIOD/#define THERMAL_RUNAWAY_PROTECTION_PERIOD/g' Marlin/Configuration.h
53
+  - sed -i 's/\/\/#define THERMAL_RUNAWAY_PROTECTION_HYSTERESIS/#define THERMAL_RUNAWAY_PROTECTION_HYSTERESIS/g' Marlin/Configuration.h
54
+  - sed -i 's/\/\/#define THERMAL_RUNAWAY_PROTECTION_BED_PERIOD/#define THERMAL_RUNAWAY_PROTECTION_BED_PERIOD/g' Marlin/Configuration.h
55
+  - sed -i 's/\/\/#define THERMAL_RUNAWAY_PROTECTION_BED_HYSTERESIS/#define THERMAL_RUNAWAY_PROTECTION_BED_HYSTERESIS/g' Marlin/Configuration.h
56
+  - rm -rf .build/
57
+  - ino build -m mega2560
58
+  # enable AUTO_BED_LEVELING
59
+  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
60
+  - sed -i 's/\/\/#define ENABLE_AUTO_BED_LEVELING/#define ENABLE_AUTO_BED_LEVELING/g' Marlin/Configuration.h
61
+  - rm -rf .build/
62
+  - ino build -m mega2560
63
+  # enable EEPROM_SETTINGS & EEPROM_CHITCHAT
64
+  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
65
+  - sed -i 's/\/\/#define EEPROM_SETTINGS/#define EEPROM_SETTINGS/g' Marlin/Configuration.h
66
+  - sed -i 's/\/\/#define EEPROM_CHITCHAT/#define EEPROM_CHITCHAT/g' Marlin/Configuration.h
67
+  - rm -rf .build/
68
+  - ino build -m mega2560
69
+  ### LCDS ###
70
+  # ULTIMAKERCONTROLLER
71
+  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
72
+  - sed -i 's/\/\/#define ULTIMAKERCONTROLLER/#define ULTIMAKERCONTROLLER/g' Marlin/Configuration.h
73
+  - rm -rf .build/
74
+  - ino build -m mega2560
75
+  # MAKRPANEL
76
+  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
77
+  - sed -i 's/\/\/#define MAKRPANEL/#define MAKRPANEL/g' Marlin/Configuration.h
78
+  - rm -rf .build/
79
+  - ino build -m mega2560
80
+  # REPRAP_DISCOUNT_SMART_CONTROLLER
81
+  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
82
+  - sed -i 's/\/\/#define REPRAP_DISCOUNT_SMART_CONTROLLER/#define REPRAP_DISCOUNT_SMART_CONTROLLER/g' Marlin/Configuration.h
83
+  - rm -rf .build/
84
+  - ino build -m mega2560
85
+  # G3D_PANE
86
+  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
87
+  - sed -i 's/\/\/#define G3D_PANEL/#define G3D_PANEL/g' Marlin/Configuration.h
88
+  - rm -rf .build/
89
+  - ino build -m mega2560
90
+  # REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
91
+  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
92
+  - sed -i 's/\/\/#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER/#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER/g' Marlin/Configuration.h
93
+  - rm -rf .build/
94
+  - ino build -m mega2560
95
+  # REPRAPWORLD_KEYPAD
96
+  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
97
+  - sed -i 's/\/\/#define ULTRA_LCD/#define ULTRA_LCD/g' Marlin/Configuration.h
98
+  - sed -i 's/\/\/#define REPRAPWORLD_KEYPAD/#define REPRAPWORLD_KEYPAD/g' Marlin/Configuration.h
99
+  - sed -i 's/\/\/#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0/#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0/g' Marlin/Configuration.h
100
+  - rm -rf .build/
101
+  - ino build -m mega2560
102
+  # RA_CONTROL_PANEL
103
+  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
104
+  - sed -i 's/\/\/#define RA_CONTROL_PANEL/#define RA_CONTROL_PANEL/g' Marlin/Configuration.h
105
+  - rm -rf .build/
106
+  - ino build -m mega2560
107
+  ### I2C PANELS ###
108
+  # LCD_I2C_SAINSMART_YWROBOT
109
+  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
110
+  - sed -i 's/\/\/#define LCD_I2C_SAINSMART_YWROBOT/#define LCD_I2C_SAINSMART_YWROBOT/g' Marlin/Configuration.h
111
+  - rm -rf .build/
112
+  - ino build -m mega2560
113
+  # LCD_I2C_PANELOLU2
114
+  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
115
+  - sed -i 's/\/\/#define LCD_I2C_PANELOLU2/#define LCD_I2C_PANELOLU2/g' Marlin/Configuration.h
116
+  - rm -rf .build/
117
+  - ino build -m mega2560
118
+  # LCD_I2C_VIKI
119
+  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
120
+  - sed -i 's/\/\/#define LCD_I2C_VIKI/#define LCD_I2C_VIKI/g' Marlin/Configuration.h
121
+  - rm -rf .build/
122
+  - ino build -m mega2560
123
+  # SAV_3DLCD
124
+  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
125
+  - sed -i 's/\/\/#define SAV_3DLCD/#define SAV_3DLCD/g' Marlin/Configuration.h
126
+  - rm -rf .build/
127
+  - ino build -m mega2560
128
+  # Enable filament sensor
129
+  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
130
+  - sed -i 's/\/\/#define FILAMENT_SENSOR/#define FILAMENT_SENSOR/g' Marlin/Configuration.h
131
+  - rm -rf .build/
132
+  - ino build -m mega2560
133
+   # Enable filament sensor with LCD display
134
+  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
135
+  - sed -i 's/\/\/#define ULTIMAKERCONTROLLER/#define ULTIMAKERCONTROLLER/g' Marlin/Configuration.h
136
+  - sed -i 's/\/\/#define FILAMENT_SENSOR/#define FILAMENT_SENSOR/g' Marlin/Configuration.h
137
+  - sed -i 's/\/\/#define FILAMENT_LCD_DISPLAY/#define FILAMENT_LCD_DISPLAY/g' Marlin/Configuration.h
138
+  - rm -rf .build/
139
+  - ino build -m mega2560
140
+  ######## Example Configurations ##############
141
+  # Delta Config
33 142
   - cp Marlin/example_configurations/delta/Configuration* Marlin/
34 143
   - rm -rf .build/
35 144
   - ino build -m mega2560
145
+  # Makibox Config  need to check board type for Teensy++ 2.0
146
+  #- cp Marlin/example_configurations/makibox/Configuration* Marlin/
147
+  #- rm -rf .build/
148
+  #- ino build -m mega2560
149
+  # SCARA Config
150
+  - cp Marlin/example_configurations/SCARA/Configuration* Marlin/
151
+  - rm -rf .build/
152
+  - ino build -m mega2560
153
+  # tvrrug Config need to check board type for sanguino atmega644p
154
+  #- cp Marlin/example_configurations/tvrrug/Round2/Configuration* Marlin/
155
+  #- rm -rf .build/
156
+  #- ino build -m mega2560
157
+  ######## Board Types #############
36 158
   - sed -i 's/#define MOTHERBOARD BOARD_RAMPS_13_EFB/#define MOTHERBOARD BOARD_DUEMILANOVE_328P/g' Marlin/Configuration.h
37 159
   - rm -rf .build/
38 160
   - ino build -m atmega328

Loading…
Cancel
Save