bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CI: remove useless apt-get update


From: Akim Demaille
Subject: CI: remove useless apt-get update
Date: Wed, 22 May 2019 07:21:12 +0200

commit c423ad17e7407a9dc015b040cc529662a8f60112
Author: Akim Demaille <address@hidden>
Date:   Mon May 20 06:53:34 2019 +0200

    CI: remove useless apt-get update
    
    The apt addons already ran it for us, it is not needed.
    
    * .travis.yml: here.

diff --git a/.travis.yml b/.travis.yml
index 2a594db0..16a69c60 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -36,7 +36,6 @@ jobs:
     - stage: "compile"
       dist: xenial
       script:
-        - sudo apt-get update -qq
         - sudo apt-get install -qq autoconf automake autopoint flex gettext 
graphviz help2man m4 texinfo
         - autoconf --version
         - automake --version
@@ -377,7 +376,7 @@ jobs:
 ## From 
https://docs.gitlab.com/ce/ci/ssh_keys/#ssh-keys-when-using-the-docker-executor.
 ## Applies to Travis too.  Applied to all the 'script's (of all the jobs).
 before_script:
-  - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client 
-y )'
+  - 'which ssh-agent || ( sudo apt-get install openssh-client -y )'
   - eval "$(ssh-agent -s)"
   # $SSH_PRIVATE_KEY is multiline.  Use $'...' to register its value: 
$'-----BEGIN OPENSSH PRIVATE KEY-----\nXXXXX...\n...==\n-----END OPENSSH 
PRIVATE KEY-----'.
   - echo "$SSH_PRIVATE_KEY" >/tmp/key.id_rsa
@@ -393,7 +392,6 @@ script:
   - eval "$MATRIX_EVAL"
   # Beware not too leak $SSH_PRIVATE_KEY.
   # - env
-  - sudo apt-get update -qq
   - sudo apt-get install -qq doxygen flex m4
   # Install and activate ICC.
   - if [[ $CC == "icc" ]]; then build-aux/install-icc.sh; fi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]