Merge pull request #277 from fghoussen/mint
[TravisCI] Add linuxmint job.
This commit is contained in:
+34
-43
@@ -31,12 +31,15 @@ stages:
|
||||
# order stages
|
||||
- name: fedora
|
||||
- name: osx
|
||||
- name: precise
|
||||
- name: trusty
|
||||
- name: xenial
|
||||
- name: bionic
|
||||
- name: ubuntu_precise
|
||||
- name: ubuntu_trusty
|
||||
- name: ubuntu_xenial
|
||||
- name: ubuntu_bionic
|
||||
- name: ubuntu_eoan
|
||||
- name: ubuntu_focal
|
||||
- name: linuxmint
|
||||
- name: coverage
|
||||
- name: interface64
|
||||
- name: debian_interface64
|
||||
|
||||
jobs:
|
||||
include:
|
||||
@@ -90,56 +93,32 @@ jobs:
|
||||
./bootstrap && ./configure --enable-mpi --enable-icb && make VERBOSE=1 && \
|
||||
cd $TRAVIS_BUILD_DIR/EXAMPLES/BAND && make check TESTS="snbdr2 dnbdr2 cnbdr2 znbdr2" && \
|
||||
cd $TRAVIS_BUILD_DIR/PARPACK/EXAMPLES/MPI && make check TESTS="psndrv1 pdndrv1 pcndrv1"
|
||||
# precise <=> test "older" systems, without ICB, without cmake (too old to be supported)
|
||||
- stage: precise
|
||||
# ubuntu_precise <=> test "older" systems, without ICB, without cmake (too old to be supported)
|
||||
- stage: ubuntu_precise
|
||||
dist: precise
|
||||
script: ./bootstrap && ./configure && make VERBOSE=1 && make check && make distcheck;
|
||||
- stage: precise
|
||||
- stage: ubuntu_precise
|
||||
dist: precise
|
||||
script: ./bootstrap && ./configure --enable-mpi && make VERBOSE=1 && make check && make distcheck;
|
||||
# trusty <=> test "older" systems, without ICB
|
||||
- stage: trusty
|
||||
dist: trusty
|
||||
script: mkdir -p build && cd build && cmake -D EXAMPLES=ON -D MPI=OFF -D ICB=OFF .. && make VERBOSE=1 && make test && make package_source;
|
||||
- stage: trusty
|
||||
# ubuntu_trusty <=> test "older" systems, without ICB
|
||||
- stage: ubuntu_trusty
|
||||
dist: trusty
|
||||
script: mkdir -p build && cd build && cmake -D EXAMPLES=ON -D MPI=ON -D ICB=OFF .. && make VERBOSE=1 && make test && make package_source;
|
||||
- stage: trusty
|
||||
dist: trusty
|
||||
script: ./bootstrap && ./configure && make VERBOSE=1 && make check && make distcheck;
|
||||
- stage: trusty
|
||||
- stage: ubuntu_trusty
|
||||
dist: trusty
|
||||
script: ./bootstrap && ./configure --enable-mpi && make VERBOSE=1 && make check && make distcheck;
|
||||
# xenial <=> test "recent" systems, with and without ICB
|
||||
- stage: xenial
|
||||
dist: xenial
|
||||
script: mkdir -p build && cd build && cmake -D EXAMPLES=ON -D MPI=OFF -D ICB=OFF .. && make VERBOSE=1 && make test && make package_source;
|
||||
- stage: xenial
|
||||
dist: xenial
|
||||
script: mkdir -p build && cd build && cmake -D EXAMPLES=ON -D MPI=ON -D ICB=OFF .. && make VERBOSE=1 && make test && make package_source;
|
||||
- stage: xenial
|
||||
dist: xenial
|
||||
script: mkdir -p build && cd build && cmake -D EXAMPLES=ON -D MPI=OFF -D ICB=ON .. && make VERBOSE=1 && make test && make package_source;
|
||||
- stage: xenial
|
||||
# ubuntu_xenial <=> test "recent" systems, with ICB
|
||||
- stage: ubuntu_xenial
|
||||
dist: xenial
|
||||
script: mkdir -p build && cd build && cmake -D EXAMPLES=ON -D MPI=ON -D ICB=ON .. && make VERBOSE=1 && make test && make package_source;
|
||||
- stage: xenial
|
||||
dist: xenial
|
||||
script: ./bootstrap && ./configure && make VERBOSE=1 && make check && make distcheck;
|
||||
- stage: xenial
|
||||
dist: xenial
|
||||
script: ./bootstrap && ./configure --enable-mpi && make VERBOSE=1 && make check && make distcheck;
|
||||
- stage: xenial
|
||||
dist: xenial
|
||||
script: ./bootstrap && ./configure --enable-icb && make VERBOSE=1 && make check && make distcheck;
|
||||
- stage: xenial
|
||||
- stage: ubuntu_xenial
|
||||
dist: xenial
|
||||
script: ./bootstrap && ./configure --enable-mpi --enable-icb && make VERBOSE=1 && make check && make distcheck;
|
||||
# bionic <=> test "recent" systems, with ICB
|
||||
- stage: bionic
|
||||
# ubuntu_bionic <=> test "recent" systems, with ICB
|
||||
- stage: ubuntu_bionic
|
||||
dist: bionic
|
||||
script: ./bootstrap && ./configure --enable-icb --enable-icb-exmm --enable-mpi && export VERBOSE=1 && make all && make check
|
||||
- stage: bionic
|
||||
- stage: ubuntu_bionic
|
||||
dist: bionic
|
||||
before_install:
|
||||
- sudo apt-get -y install python3-minimal python3-pip python3-numpy
|
||||
@@ -156,6 +135,18 @@ 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
|
||||
# ubuntu_eoan <=> test "recent" systems, with ICB
|
||||
- stage: ubuntu_eoan
|
||||
dist: bionic
|
||||
script: ./scripts/travis_ubuntu.sh ubuntu :eoan
|
||||
# ubuntu_focal <=> test "recent" systems, with ICB
|
||||
- stage: ubuntu_focal
|
||||
dist: bionic
|
||||
script: ./scripts/travis_ubuntu.sh ubuntu :focal
|
||||
# linuxmint <=> test "recent" systems, with ICB
|
||||
- stage: linuxmint
|
||||
dist: bionic
|
||||
script: ./scripts/travis_ubuntu.sh linuxmintd /mint20-amd64
|
||||
# coverage: "recent" systems with ICB
|
||||
- stage: coverage
|
||||
dist: bionic
|
||||
@@ -179,13 +170,13 @@ jobs:
|
||||
head -n 50 coveralls.log && tail -n 50 coveralls.log \
|
||||
&& \
|
||||
head -n 50 coveralls.json && tail -n 50 coveralls.json
|
||||
# interface64: "recent" systems with ICB + MKL + ILP64 (need debian/testing to get MKL-ILP64)
|
||||
# debian_interface64: "recent" systems with ICB + MKL + ILP64 (need debian/testing to get MKL-ILP64)
|
||||
# note: when you PR, docker-cp provides, in the container, the branch associated with the PR (not master where there's nothing new)
|
||||
# 1. docker create --name mobydick IMAGE CMD <=> create a container (= instance of image) but container is NOT yet started
|
||||
# 2. docker cp -a ${TRAVIS_BUILD_DIR} mobydick:/tmp <=> copy git repository (CI worker, checkout-ed on PR branch) into the container
|
||||
# note: docker-cp works only if copy from/to containers (not images)
|
||||
# 3. docker start -a mobydick <=> start to run the container (initialized with docker-cp)
|
||||
- stage: interface64
|
||||
- stage: debian_interface64
|
||||
dist: xenial
|
||||
script: |
|
||||
sudo docker pull debian \
|
||||
|
||||
Executable
+35
@@ -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 "$1$2" \
|
||||
&& \
|
||||
sudo docker create --name mobydick "$1$2" /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
|
||||
Reference in New Issue
Block a user