Skip to content

Commit f925cb1

Browse files
committed
Update Travis-CI to handle MPICH bottle correctly
- Partially reverts e293e5d - Correctly handles Mac OS homebrew install of gcc@6 - See also #65 (comment)
1 parent 29c7c92 commit f925cb1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.travis.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ env:
77
- MPICH_URL_HEAD="http://www.mpich.org/static/downloads/$MPICH_VER"
88
- MPICH_URL_TAIL="mpich-${MPICH_VER}.tar.gz"
99
- MPICH_DIR="$HOME/.local/usr/mpich"
10-
- MPICH_BOT_URL_HEAD="https://github.com/sourceryinstitute/OpenCoarrays/files/976766/"
10+
- MPICH_BOT_URL_HEAD="https://github.com/sourceryinstitute/OpenCoarrays/files/979804/"
1111
- MPICH_BOT_URL_TAIL="mpich-3.2_3.yosemite.bottle.1.tar.gz"
1212
- FC=gfortran-6
1313
- CC=gcc-6
@@ -119,8 +119,6 @@ install:
119119
if ! [[ "$(brew ls --versions mpich)" ]]; then
120120
brew install --force-bottle mpich
121121
fi
122-
rm -rf /usr/local/opt/gcc || true
123-
ln -s /usr/local/opt/gcc@6 /usr/local/opt/gcc # hack to get dynamic linker to find gcc 6 stuff
124122
mpif90 --version || mpif90 -show
125123
mpicc --version || mpicc -show
126124
cmake --version
@@ -161,8 +159,8 @@ script:
161159
[[ -d "$HOME/opt" ]] || mkdir "$HOME/opt"
162160
[[ -d "$HOME/bin" ]] || mkdir "$HOME/bin"
163161
ln -fs "$(which gfortran-6)" "$HOME/bin/gfortran"
164-
ln -fs "$(which gcc-6)" "$HOME/bin/gcc"
165-
ln -fs "$(which g++-6)" "$HOME/bin/g++"
162+
ln -fs "$(which ${CC})" "$HOME/bin/gcc"
163+
ln -fs "$(which ${CXX})" "$HOME/bin/g++"
166164
export PATH="$PATH:$HOME/bin"
167165
./install.sh --yes-to-all -i "$HOME/opt/opencoarrays" -j 4 -f "$HOME/bin/gfortran" -c "$HOME/bin/gcc" -C "$HOME/bin/g++"
168166
cd prerequisites/builds/opencoarrays/*

0 commit comments

Comments
 (0)