mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 09:13:04 +00:00
CI: avoid useless git costs
Travis answered favorably to my suggestion to provide a means to disable git clone on some jobs (issue 7542). See https://docs.travis-ci.com/user/customizing-the-build/#disabling-git-clone. * .travis.yml: Disable git globally, enable it for i. the compile job, and ii. the test job on ICC which needs the install-icc.sh script.
This commit is contained in:
17
.travis.yml
17
.travis.yml
@@ -20,20 +20,18 @@ stages:
|
|||||||
- compile
|
- compile
|
||||||
- test
|
- test
|
||||||
|
|
||||||
|
# The 'test' jobs do not need the repo at all, only the 'compile'
|
||||||
|
# does. Let's save time, bandwith, energy, and polar bears.
|
||||||
git:
|
git:
|
||||||
# Manually handle submodules so that we don't have to uselessly waste 150s
|
clone: false
|
||||||
# to download gnulib in the 'test' jobs.
|
|
||||||
submodules: false
|
|
||||||
|
|
||||||
# For the same reasons, we would like to not clone the repo either, but it
|
|
||||||
# does not seem to be possible.
|
|
||||||
depth: 1
|
|
||||||
|
|
||||||
# matrix.include and jobs.include are aliases
|
# matrix.include and jobs.include are aliases
|
||||||
# (https://docs.travis-ci.com/user/conditional-builds-stages-jobs/).
|
# (https://docs.travis-ci.com/user/conditional-builds-stages-jobs/).
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: "compile"
|
- stage: "compile"
|
||||||
|
git:
|
||||||
|
clone: true
|
||||||
dist: xenial
|
dist: xenial
|
||||||
script:
|
script:
|
||||||
- sudo apt-get install -qq autoconf automake autopoint flex gettext graphviz help2man m4 texinfo
|
- sudo apt-get install -qq autoconf automake autopoint flex gettext graphviz help2man m4 texinfo
|
||||||
@@ -112,6 +110,11 @@ jobs:
|
|||||||
|
|
||||||
- name: "ICC"
|
- name: "ICC"
|
||||||
stage: test
|
stage: test
|
||||||
|
# We need the build-aux/install-icc.sh script.
|
||||||
|
git:
|
||||||
|
clone: true
|
||||||
|
submodules: false
|
||||||
|
depth: 1
|
||||||
os: linux
|
os: linux
|
||||||
dist: xenial
|
dist: xenial
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user