Skip to contentSkip to conversation

travis: Do not waste time cloning unused submodules

RFC PATCH Applied Philippe Mathieu-Daudé 3 participants 4 messages Jun 22, 2018

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 travis: Do not waste time cloning unused submodules

Builds only require:
- dtc
- keycodemapdb
- capstone

---
Some tests might require ROMs. Can they clone submodules only when required?

---
 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.travis.yml +1 -1
index fabfe9ec34..415d703c91 100644
@@ -67,7 +67,7 @@ before_install:
   - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update ; fi
   - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libffi gettext glib pixman ; fi
   - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
-  - git submodule update --init --recursive
+  - git submodule update --init --recursive capstone dtc ui/keycodemapdb
 before_script:
   - ./configure ${CONFIG} || { cat config.log && exit 1; }
 script:
Signature · 1 line
2.18.0.rc2
#1 lore raw
Quoted 22 lines · Philippe Mathieu-Daudé

Builds only require:
- dtc
- keycodemapdb
- capstone

---
Some tests might require ROMs. Can they clone submodules only when required?

---
 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.travis.yml +1 -1
index fabfe9ec34..415d703c91 100644
@@ -67,7 +67,7 @@ before_install:
   - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update ; fi
   - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libffi gettext glib pixman ; fi
   - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
-  - git submodule update --init --recursive
+  - git submodule update --init --recursive capstone dtc
Quoted 1 line

ui/keycodemapdb

Does that mean we could drop the wget hack? That's there mainly because cloning all the submodules takes some time.

Quoted 3 lines

before_script:
- ./configure ${CONFIG} || { cat config.log && exit 1; }
script:

--
Alex Bennée

Applied
#3 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 22 lines · Philippe Mathieu-Daudé

Builds only require:
- dtc
- keycodemapdb
- capstone

---
Some tests might require ROMs. Can they clone submodules only when required?

---
 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.travis.yml +1 -1
index fabfe9ec34..415d703c91 100644
@@ -67,7 +67,7 @@ before_install:
   - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update ; fi
   - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libffi gettext glib pixman ; fi
   - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
-  - git submodule update --init --recursive
+  - git submodule update --init --recursive capstone dtc
Quoted 1 line

ui/keycodemapdb

Queued with drop of wget as well. Thanks.

Quoted 3 lines

before_script:
- ./configure ${CONFIG} || { cat config.log && exit 1; }
script:

--
Alex Bennée