From 3b4b9e5d0eb9d830401ded11c60eaa21eaef6ff8 Mon Sep 17 00:00:00 2001 From: Michele Martone Date: Mon, 22 Feb 2021 13:05:16 +0100 Subject: [PATCH] First integration with travis-ci, with Dockerfile --- .travis.yml | 22 ++++++++++++++++++++++ Dockerfile | 15 +++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .travis.yml create mode 100644 Dockerfile diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..033f6581 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,22 @@ +language: python +os: linux +dist: xenial +python: 3.7 + +services: + - docker + +stages: + - test +env: + global: + - OMP_NUM_THREADS=2 + jobs: + - IMG=debian:stable + +jobs: + allow_failures: + - env: IMG=debian:stable + +script: + - docker build --build-arg "OMP_NUM_THREADS=${OMP_NUM_THREADS}" --build-arg "IMG=${IMG}" "." diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..cb1575ef --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM debian:stable +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update +RUN apt-get install -q --yes less sudo vim screen +RUN apt-get install -q --yes git +RUN apt-get install --yes gcc +RUN apt-get install --yes gfortran +RUN apt-get install --yes screen git make autoconf automake libtool; +RUN apt-get install --yes openmpi-bin +RUN apt-get install --yes libopenmpi-dev +COPY . psblas3 +WORKDIR psblas3 +RUN bash autogen.sh +RUN ./configure FCOPT=-O0\ -pipe CCOPT=-O0\ -pipe +RUN make