Skip to content

Commit

Permalink
TravisCI: add centos build.
Browse files Browse the repository at this point in the history
  • Loading branch information
fghoussen committed Jun 8, 2020
1 parent 82c193b commit b8a814a
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 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: centos
- name: fedora
- name: osx
- name: precise
Expand All @@ -40,6 +41,37 @@ stages:

jobs:
include:
# centos: "recent" systems 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: centos
dist: bionic
script: |
sudo docker pull centos \
&& \
sudo docker create --name mobydick centos /bin/bash -c \
"dnf install -y dnf-plugins-core epel-release && \
dnf upgrade -y && \
dnf config-manager --set-enabled PowerTools && \
dnf install -y git make gcc gcc-gfortran gcc-c++ cmake environment-modules && \
dnf install -y mpich-devel && \
dnf --enablerepo=\"epel\" install -y openblas-devel lapack-devel && \
. /etc/profile.d/modules.sh && \
module avail && module load mpi && module list && \
cd /tmp && \
cd arpack-ng && \
git status && \
git log -2 && \
mkdir -p build && cd build && \
cmake -DEXAMPLES=ON -DMPI=ON -DICB=ON .. && \
make all && make test" \
&& \
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 b8a814a

Please sign in to comment.