Skip to content

Commit e2ef5c5

Browse files
committed
Attempt to fix Travis-CI build issues
1 parent 2a58100 commit e2ef5c5

File tree

3 files changed

+13
-16
lines changed

3 files changed

+13
-16
lines changed

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ env:
99
- MPICH_VER="3.2"
1010
- MPICH_URL_HEAD="https://www.mpich.org/static/downloads/${MPICH_VER}"
1111
- MPICH_URL_TAIL="mpich-${MPICH_VER}.tar.gz"
12-
- MPICH_DIR="${HOME}/.local/usr/mpich"
1312
- MPICH_GCC6_BOT_URL_HEAD="https://github.com/sourceryinstitute/OpenCoarrays/files/979804/"
1413
- MPICH_GCC7_BOT_URL_HEAD="https://github.com/sourceryinstitute/OpenCoarrays/files/976779/"
1514
- MPICH_BOT_URL_TAIL="mpich-3.2_3.yosemite.bottle.1.tar.gz"
@@ -114,18 +113,19 @@ before_install:
114113
export PATH="${PATH}:${HOME}/Library/Python/2.7/bin"
115114
else
116115
[[ -d "${CACHE}/bin" ]] || mkdir -p "${CACHE}/bin"
117-
[[ -d "${MPICH_DIR}" ]] || mkdir -p "${MPICH_DIR}"
118116
export PATH="${CACHE}/bin:${PATH}"
119117
${FC} --version
120118
${CC} --version
121119
${CXX} --version
122120
fi
123121
124122
install:
123+
- pwd
125124
- developer-scripts/travis/install.${TRAVIS_OS_NAME}.sh
126125

127126
script:
128-
- developer-scripts/travis/install.${BUILD_TYPE:-cmake}.sh
127+
- pwd
128+
- developer-scripts/travis/test-script.${BUILD_TYPE:-cmake}.sh
129129

130130
after_script:
131131
- find . -name '*.gcno' -print
@@ -190,3 +190,7 @@ notifications:
190190
on_success: change # options: [always|never|change]
191191
on_failure: always
192192
on_start: always
193+
email:
194+
on_success: change
195+
on_failure: always
196+
on_start: never

developer-scripts/travis/install.linux.sh

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,18 @@ trap '__caf_err_report "${FUNCNAME:-.}" ${LINENO}' ERR
2121

2222
echo "Performing Travis-CI installation phase on Linux..."
2323

24-
if [[ ${BUILD_TYPE} != InstallScript ]]; then # Ubuntu on Travis-CI, NOT testing install.sh
24+
if [[ "${BUILD_TYPE:-}" != InstallScript ]]; then # Ubuntu on Travis-CI, NOT testing install.sh
2525
if ! [[ -x "${HOME}/.local/bin/mpif90" && -x "${HOME}/.local/bin/mpicc" ]]; then
2626
# mpich install not cached
2727
# could use prerequisites/build instead...
2828
wget "${MPICH_URL_HEAD}/${MPICH_URL_TAIL}"
29-
mv "${MPICH_URL_TAIL}" "${MPICH_DIR}/.."
29+
tar -xzvf "${MPICH_URL_TAIL}"
3030
(
31-
cd "${MPICH_DIR}/.."
32-
tar -xzvf "${MPICH_URL_TAIL}"
33-
cd "${MPICH_URL_TAIL%.tar.gz}"
34-
./configure --prefix="${MPICH_DIR}"
31+
cd "${MPICH_URL_TAIL%.tar.gz}"
32+
./configure --prefix="${CACHE}"
3533
make -j 4
3634
make install
37-
)
38-
for f in "${MPICH_DIR}/bin/"*; do
39-
if [[ -x "${f}" ]]; then
40-
ln -fs "${f}" "${HOME}/.local/bin/${f##*/}"
41-
fi
42-
done
35+
)
4336
fi
4437
mpif90 --version
4538
mpicc --version

developer-scripts/travis/install.osx.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ for pkg in ${OSX_PACKAGES}; do
3030
brew ls --versions "${pkg}" >/dev/null || brew install "${pkg}" || brew link --overwrite "${pkg}"
3131
brew outdated "${pkg}" || brew upgrade "${pkg}"
3232
done
33-
if [[ ${BUILD_TYPE} == InstallScript ]]; then # uninstall some stuff if present
33+
if [[ "${BUILD_TYPE:-}" == InstallScript ]]; then # uninstall some stuff if present
3434
brew uninstall --force --ignore-dependencies cmake || true
3535
brew uninstall --force --ignore-dependencies mpich || true
3636
brew uninstall --force --ignore-dependencies openmpi || true

0 commit comments

Comments
 (0)