First integration with travis-ci, with Dockerfile

newG2L
Michele Martone 4 years ago
parent 0bcc32c626
commit 3b4b9e5d0e

@ -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}" "."

@ -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
Loading…
Cancel
Save