[TravisCI] : add eoan / focal build.

This commit is contained in:
Franck HOUSSEN
2020-07-19 17:24:27 +02:00
parent 82c193b909
commit 34ab5be34f
2 changed files with 45 additions and 0 deletions
+10
View File
@@ -35,6 +35,8 @@ stages:
- name: trusty
- name: xenial
- name: bionic
- name: eoan
- name: focal
- name: coverage
- name: interface64
@@ -153,6 +155,14 @@ jobs:
cd $TRAVIS_BUILD_DIR && mkdir -p build && cd build && \
cmake -DEXAMPLES=ON -DICB=ON -DICBEXMM=ON -DMPI=ON -DPYTHON3=ON -DBOOST_PYTHON_LIBSUFFIX='36' .. && \
export VERBOSE=1 && make all && make test
# eoan <=> test "recent" systems, with ICB
- stage: eoan
dist: bionic
script: ./scripts/travis_ubuntu.sh eoan
# focal <=> test "recent" systems, with ICB
- stage: focal
dist: bionic
script: ./scripts/travis_ubuntu.sh focal
# coverage: "recent" systems with ICB
- stage: coverage
dist: bionic
+35
View File
@@ -0,0 +1,35 @@
#!/bin/sh
## -e : Make sure all errors cause the script to fail
## -x be verbose; write what we are doing, as we do it
set -ex
sudo docker pull ubuntu:"$1" \
&& \
sudo docker create --name mobydick ubuntu:"$1" /bin/bash -c \
"apt-get update && \
ln -snf /usr/share/zoneinfo/Europe/Paris /etc/localtime && echo 'Europe/Paris' > /etc/timezone && \
apt-get -y install build-essential && \
apt-get -y install dialog apt-utils && \
apt-get -y install git gfortran gcc g++ openmpi-bin libopenmpi-dev automake autoconf libtool pkg-config cmake && \
apt-get -y install libblas-dev liblapack-dev && \
cd /tmp && \
cd arpack-ng && \
git status && \
git log -2 && \
sed -e 's/LOG_FLAGS = /LOG_FLAGS = --allow-run-as-root --oversubscribe /' -i PARPACK/EXAMPLES/MPI/Makefile.am && \
sed -e 's/LOG_FLAGS = /LOG_FLAGS = --allow-run-as-root --oversubscribe /' -i PARPACK/TESTS/MPI/Makefile.am && \
./bootstrap && \
./configure --enable-icb --enable-mpi --disable-dependency-tracking && \
export VERBOSE=1 && \
make all && \
make check; find . -name test-suite.log | xargs tail -n 50 && \
make distcheck && \
sed -e 's/mpirun /mpirun --allow-run-as-root --oversubscribe /' -i CMakeLists.txt && \
mkdir -p build && cd build && \
cmake -DEXAMPLES=ON -DMPI=ON -DICB=ON .. && \
make all && \
make test; tail -n 50 ./Testing/Temporary/LastTest.log" \
&& \
sudo docker cp -a ${TRAVIS_BUILD_DIR} mobydick:/tmp \
&& \
sudo docker start -a mobydick