Skip to content

Commit

Permalink
TravisCI: add sh build.
Browse files Browse the repository at this point in the history
  • Loading branch information
fghoussen committed Jun 6, 2020
1 parent 82c193b commit cd91b7f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ services:

stages:
# order stages
- name: sh
- name: fedora
- name: osx
- name: precise
Expand All @@ -40,6 +41,39 @@ stages:

jobs:
include:
# sh: "freebsd-like" systems based on sh (not bash) with ICB
# 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: sh
dist: bionic
script: |
sudo docker pull ubuntu:bionic \
&& \
sudo docker create --name mobydick ubuntu:bionic /bin/sh -c \
"apt-get -y update && \
apt-get -y install build-essential diffutils findutils && \
apt-get -y install git gfortran gcc g++ openmpi-bin libopenmpi-dev automake autoconf libtool pkg-config && \
apt-get -y install libblas-dev liblapack-dev && \
apt-get -y install libeigen3-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-mpi --enable-icb-exmm --disable-dependency-tracking && \
export VERBOSE=1 && \
make all && \
make check && \
find . -name test-suite.log | xargs tail -n 300" \
&& \
sudo docker cp -a ${TRAVIS_BUILD_DIR} mobydick:/tmp \
&& \
sudo docker start -a mobydick
# fedora (released fedora with openmpi)
- stage: fedora
dist: bionic
Expand Down

0 comments on commit cd91b7f

Please sign in to comment.