Bläddra i källkod

New test for servos in Travis (PR#2565)

AnHardt 9 år sedan
förälder
incheckning
c39dc2908f
1 ändrade filer med 9 tillägg och 0 borttagningar
  1. 9
    0
      .travis.yml

+ 9
- 0
.travis.yml Visa fil

@@ -65,6 +65,15 @@ script:
65 65
   - sed -i 's/\/\/#define ENABLE_AUTO_BED_LEVELING/#define ENABLE_AUTO_BED_LEVELING/g' Marlin/Configuration.h
66 66
   - rm -rf .build/
67 67
   - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
68
+  # enable AUTO_BED_LEVELING with servos
69
+  - cp Marlin/Configuration.h.backup Marlin/Configuration.h
70
+  - sed -i 's/\/\/#define ENABLE_AUTO_BED_LEVELING/#define ENABLE_AUTO_BED_LEVELING/g' Marlin/Configuration.h
71
+  - sed -i 's/\/\/#define NUM_SERVOS/#define NUM_SERVOS/g' Marlin/Configuration.h
72
+  - sed -i 's/\/\/#define Z_ENDSTOP_SERVO_NR/#define Z_ENDSTOP_SERVO_NR/g' Marlin/Configuration.h
73
+  - sed -i 's/\/\/#define SERVO_ENDSTOP_ANGLES/#define SERVO_ENDSTOP_ANGLES/g' Marlin/Configuration.h
74
+  - sed -i 's/\/\/#define DEACTIVATE_SERVOS_AFTER_MOVE/#define DEACTIVATE_SERVOS_AFTER_MOVE/g' Marlin/Configuration.h
75
+  - rm -rf .build/
76
+  - DISPLAY=:1.0 ~/bin/arduino --verify --board marlin:avr:mega  Marlin/Marlin.ino
68 77
   # enable EEPROM_SETTINGS & EEPROM_CHITCHAT
69 78
   - cp Marlin/Configuration.h.backup Marlin/Configuration.h
70 79
   - sed -i 's/\/\/#define EEPROM_SETTINGS/#define EEPROM_SETTINGS/g' Marlin/Configuration.h

Laddar…
Avbryt
Spara