瀏覽代碼

New test for servos in Travis (PR#2565)

AnHardt 9 年之前
父節點
當前提交
c39dc2908f
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9
    0
      .travis.yml

+ 9
- 0
.travis.yml 查看文件

@@ -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

Loading…
取消
儲存