Skip to content

Commit 6313f20

Browse files
committed
Test with a non-broken OpenMPI
1 parent 5d24cc9 commit 6313f20

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,11 @@ env:
1414
- MPI_IMPL=openmpi
1515
before_install:
1616
- sh ./conf/travis-install-mpi.sh $MPI_IMPL
17+
- export PATH=$HOME/OpenMPI/bin:$PATH
18+
script:
19+
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
20+
- echo $PATH
21+
- echo $LD_LIBRARY_PATH
22+
- julia --check-bounds=yes -e 'Pkg.clone(pwd()); Pkg.build("MPI"); Pkg.test("MPI")'
1723
after_success:
1824
- if [ "$TRAVIS_JULIA_VERSION" = nightly ]; then julia -e 'cd(Pkg.dir("MPI")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder()); Codecov.submit(Coveralls.process_folder())'; fi

conf/travis-install-mpi.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ case "$os" in
4343
# rm -f ./mpich_3.1-1ubuntu_amd64.deb
4444
;;
4545
openmpi)
46-
sudo apt-get install -y gfortran openmpi-bin openmpi-common libopenmpi-dev
46+
wget --no-check-certificate https://www.open-mpi.org/software/ompi/v1.10/downloads/openmpi-1.10.2.tar.gz
47+
tar -zxvf openmpi-1.10.2.tar.gz
48+
cd openmpi-1.10.2
49+
sh ./configure --prefix=$HOME/OpenMPI
50+
make -j
51+
sudo make install
4752
;;
4853
*)
4954
echo "Unknown MPI implementation: $MPI_IMPL"

0 commit comments

Comments
 (0)