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