Преглед изворни кода

Reactivate tests for more extruders in Travis (PR#2348)

BOARD_ULTIMAKER was not the default any more
- sed failed to change the board
- RAMPS_EFB has no second extruder
- ...
- Added test for bed

Rebased.
AnHardt пре 9 година
родитељ
комит
2c1414f81f
1 измењених фајлова са 15 додато и 8 уклоњено
  1. 15
    8
      .travis.yml

+ 15
- 8
.travis.yml Прегледај датотеку

@@ -38,16 +38,23 @@ script:
38 38
   # backup configuration.h
39 39
   - cp Marlin/Configuration.h Marlin/Configuration.h.backup
40 40
   - cp Marlin/Configuration_adv.h Marlin/Configuration_adv.h.backup
41
+  # add sensor for bed
42
+  - sed -i 's/#define TEMP_SENSOR_BED 0/#define TEMP_SENSOR_BED 1/g' Marlin/Configuration.h
43
+  - rm -rf .build/
44
+  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
41 45
   # change extruder numbers from 1 to 2
42
-  # commented out for the moment fails build but compiles fine in Arduino
43
-  #- sed -i 's/#define EXTRUDERS 1/#define EXTRUDERS 2/g' Marlin/Configuration.h
44
-  #- rm -rf .build/
45
-  #- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
46
+  - sed -i 's/#define MOTHERBOARD BOARD_RAMPS_13_EFB/#define MOTHERBOARD BOARD_RAMPS_13_EEB/g' Marlin/Configuration.h
47
+  - sed -i 's/#define EXTRUDERS 1/#define EXTRUDERS 2/g' Marlin/Configuration.h
48
+  - sed -i 's/#define TEMP_SENSOR_1 0/#define TEMP_SENSOR_1 1/g' Marlin/Configuration.h
49
+  #- cat Marlin/Configuration.h
50
+  - rm -rf .build/
51
+  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
46 52
   # change extruder numbers from 2 to 3, needs to be a board with 3 extruders defined in pins.h 
47
-  #- sed -i 's/#define MOTHERBOARD BOARD_ULTIMAKER/#define MOTHERBOARD BOARD_AZTEEG_X3_PRO/g' Marlin/Configuration.h
48
-  #- sed -i 's/#define EXTRUDERS 2/#define EXTRUDERS 3/g' Marlin/Configuration.h
49
-  #- rm -rf .build/
50
-  #- DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
53
+  - sed -i 's/#define MOTHERBOARD BOARD_RAMPS_13_EEB/#define MOTHERBOARD BOARD_RUMBA/g' Marlin/Configuration.h
54
+  - sed -i 's/#define EXTRUDERS 2/#define EXTRUDERS 3/g' Marlin/Configuration.h
55
+  - sed -i 's/#define TEMP_SENSOR_2 0/#define TEMP_SENSOR_2 1/g' Marlin/Configuration.h
56
+  - rm -rf .build/
57
+  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
51 58
   # enable PIDTEMPBED 
52 59
   - cp Marlin/Configuration.h.backup Marlin/Configuration.h
53 60
   - sed -i 's/\/\/#define PIDTEMPBED/#define PIDTEMPBED/g' Marlin/Configuration.h

Loading…
Откажи
Сачувај