Skip to content

Commit 4442f58

Browse files
committed
perf-test: speed up builds just like e7bb127 did
apt-get update takes considerable time, removing one call is desirable.
1 parent 8923dcf commit 4442f58

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

scripts/perf-test/codebuild.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,8 @@ Resources:
6262
phases:
6363
install:
6464
commands:
65-
- apt-get update -y
66-
- apt-get install -y software-properties-common
67-
- add-apt-repository ppa:ubuntu-toolchain-r/test
65+
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main" > /etc/apt/sources.list.d/toolchain.list
66+
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA9EF27F
6867
- apt-get update -y
6968
- apt-get install -y libwww-perl g++-5 flex bison git openjdk-7-jdk
7069
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1
@@ -105,9 +104,8 @@ Resources:
105104
phases:
106105
install:
107106
commands:
108-
- apt-get update -y
109-
- apt-get install -y software-properties-common
110-
- add-apt-repository ppa:ubuntu-toolchain-r/test
107+
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main" > /etc/apt/sources.list.d/toolchain.list
108+
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA9EF27F
111109
- apt-get update -y
112110
- apt-get install -y libwww-perl g++-5 flex bison git openjdk-7-jdk
113111
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1

0 commit comments

Comments
 (0)