Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
b545089f
Unverified
Commit
b545089f
authored
Dec 12, 2018
by
Gennadiy Civil
Committed by
GitHub
Dec 12, 2018
Browse files
Merge pull request #2004 from cotsog/patch-1
Cache gcc and clang APT packages
parents
6cbd3753
3b1f43c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
.travis.yml
.travis.yml
+16
-3
No files found.
.travis.yml
View file @
b545089f
...
@@ -44,6 +44,18 @@ matrix:
...
@@ -44,6 +44,18 @@ matrix:
env
:
BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11
env
:
BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11
if
:
type != pull_request
if
:
type != pull_request
before_install
:
-
|
if [ "$TRAVIS_OS_NAME" != "osx" ] && [ ! -f ${TRAVIS_BUILD_DIR}/apt-cache/pkgcache.bin ]; then
mkdir -p ${TRAVIS_BUILD_DIR}/apt-cache/archives/partial
mkdir -p ${TRAVIS_BUILD_DIR}/apt-cache/partial
mkdir -p ${TRAVIS_BUILD_DIR}/apt-cache/lists
sudo apt-get -y -o Dir::cache=${TRAVIS_BUILD_DIR}/apt-cache -o Dir::State::Lists=${TRAVIS_BUILD_DIR}/apt-cache/lists update
sudo apt-get install --download-only -o Dir::cache=${TRAVIS_BUILD_DIR}/apt-cache -o Dir::State::Lists=${TRAVIS_BUILD_DIR}/apt-cache/lists g++-4.9 clang-3.9
fi
-
if [ "$TRAVIS_OS_NAME" != "osx" ]; then sudo apt-get install --no-download -o Dir::cache=${TRAVIS_BUILD_DIR}/apt-cache -o Dir::State::Lists=${TRAVIS_BUILD_DIR}/apt-cache/lists g++-4.9 clang-3.9; fi
-
if [ "$TRAVIS_OS_NAME" != "osx" ]; then sudo chown -R $USER ${TRAVIS_BUILD_DIR}/apt-cache; fi
# These are the install and build (script) phases for the most common entries in the matrix. They could be included
# These are the install and build (script) phases for the most common entries in the matrix. They could be included
# in each entry in the matrix, but that is just repetitive.
# in each entry in the matrix, but that is just repetitive.
install
:
install
:
...
@@ -63,9 +75,10 @@ addons:
...
@@ -63,9 +75,10 @@ addons:
sources
:
sources
:
-
ubuntu-toolchain-r-test
-
ubuntu-toolchain-r-test
-
llvm-toolchain-precise-3.9
-
llvm-toolchain-precise-3.9
packages
:
-
g++-4.9
cache
:
-
clang-3.9
directories
:
-
apt-cache
notifications
:
notifications
:
email
:
false
email
:
false
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment