Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
3f6024f3
Commit
3f6024f3
authored
Aug 11, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Re-)try really hard to install gcc-8 and g++-8 in travis, even if it fails a couple of times.
parent
be45c2dc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
.travis.yml
.travis.yml
+10
-6
No files found.
.travis.yml
View file @
3f6024f3
...
@@ -13,8 +13,8 @@ addons:
...
@@ -13,8 +13,8 @@ addons:
-
python-dbg
-
python-dbg
-
python3-dbg
-
python3-dbg
-
libzmq-dev
# needed by IPython/Tornado
-
libzmq-dev
# needed by IPython/Tornado
-
gcc-8
#
- gcc-8
-
g++-8
#
- g++-8
cache
:
cache
:
pip
:
true
pip
:
true
...
@@ -37,7 +37,7 @@ env:
...
@@ -37,7 +37,7 @@ env:
-
CCACHE_SLOPPINESS=pch_defines,time_macros
-
CCACHE_SLOPPINESS=pch_defines,time_macros
-
CCACHE_COMPRESS=1
-
CCACHE_COMPRESS=1
-
CCACHE_MAXSIZE=150M
-
CCACHE_MAXSIZE=150M
-
PATH="/usr/lib/ccache:$HOME/
gcclinks:$HOME/
miniconda/bin:$PATH"
-
PATH="/usr/lib/ccache:$HOME/miniconda/bin:$PATH"
matrix
:
matrix
:
-
BACKEND=c
-
BACKEND=c
-
BACKEND=cpp
-
BACKEND=cpp
...
@@ -116,9 +116,13 @@ branches:
...
@@ -116,9 +116,13 @@ branches:
before_install
:
before_install
:
-
|
-
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
mkdir -p $HOME/gcclinks
# adding apt repos in travis is really fragile => retry a couple of times.
ln -s /usr/bin/gcc-8 $HOME/gcclinks/gcc
sudo apt-add-respository 'ppa:ubuntu-toolchain-r/test'
ln -s /usr/bin/g++-8 $HOME/gcclinks/g++
for i in {1..10}; do sudo apt-get update && break; done
for i in {1..10}; do sudo apt-get install gcc-8 $(if [ "$BACKEND" = cpp ]; then echo -n "g++-8"; fi ) && break ; done
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-8
sudo update-alternatives --set gcc /usr/bin/gcc-8
sudo update-alternatives --set g++ /usr/bin/g++-8
export CC=gcc-8 CXX=g++-8
export CC=gcc-8 CXX=g++-8
fi
fi
...
...
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