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

Have Travis Get additional information from the git repository

Travis builds from a detached head.
We need to use the current branch so that versioning works properly
Richard Wackerbarth пре 9 година
родитељ
комит
bf629cf7b1
1 измењених фајлова са 5 додато и 2 уклоњено
  1. 5
    2
      .travis.yml

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

@@ -2,7 +2,10 @@
2 2
 language: c
3 3
 
4 4
 before_install:
5
-  - pwd
5
+  # Travis runs a detached head. We need to find the current branch
6
+  - git checkout `git branch --contains HEAD | grep -v '*'`
7
+  # Also tags for the root(s) of the minor version(s)
8
+  - git fetch origin --tags
6 9
   - mkdir ~/bin
7 10
   - wget https://bootstrap.pypa.io/get-pip.py
8 11
   - wget https://bintray.com/artifact/download/olikraus/u8glib/u8glib_arduino_v1.17.zip
@@ -17,7 +20,7 @@ install:
17 20
 before_script:
18 21
   # copy TMC and L6470 libraries to arduino dir, as conditional includes do not work in .ino files
19 22
   - sudo cp -r ArduinoAddons/Arduino_1.x.x/libraries/ /usr/share/arduino
20
- # add U8glib, LiquidCrystal_I2C & LiquidTWI2 libraries 
23
+  # add U8glib, LiquidCrystal_I2C & LiquidTWI2 libraries 
21 24
   - sudo unzip u8glib_arduino_v1.17.zip -d /usr/share/arduino/libraries/
22 25
   - cd /usr/share/arduino/libraries/
23 26
   - sudo git clone https://github.com/kiyoshigawa/LiquidCrystal_I2C.git

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