Commit e15847db authored by Remi Perenon's avatar Remi Perenon

Adding continuous integration files

parent 414a63c9
Pipeline #5325 passed with stage
in 7 minutes and 27 seconds
stages:
- make
#===============
make:linux_gfortran:
stage: make
script:
- docker build --force-rm -t ci_crysfml_xenial_gfortran -f ${CI_PROJECT_DIR}/BuildServer/Docker/Dockerfile_setup_xenial_gfortran .
- docker build --force-rm --no-cache -t ci_crysfml_xenial_build_gfortran_${CI_COMMIT_SHORT_SHA} -f ${CI_PROJECT_DIR}/BuildServer/Docker/Dockerfile_build_xenial_gfortran .
- docker run ci_crysfml_xenial_build_gfortran_${CI_COMMIT_SHORT_SHA}
tags:
- sci
- ubuntu
make:linux_ifort:
stage: make
script:
- docker build --force-rm -t ci_crysfml_xenial_ifort -f ${CI_PROJECT_DIR}/BuildServer/Docker/Dockerfile_setup_xenial_ifort .
- docker build --force-rm --no-cache -t ci_crysfml_xenial_build_ifort_${CI_COMMIT_SHORT_SHA} -f ${CI_PROJECT_DIR}/BuildServer/Docker/Dockerfile_build_xenial_ifort .
- docker run -v /home/ci/intel:/opt/intel ci_crysfml_xenial_build_ifort_${CI_COMMIT_SHORT_SHA}
tags:
- sci
- ubuntu
#===============
make:macos_gfortran:
stage: make
script:
- BuildServer/Unix/build.sh gfortran
tags:
- sci
- osx-10.13
make:macos_ifort:
stage: make
script:
- BuildServer/Unix/build.sh ifort
tags:
- sci
- osx-10.13
#===============
make:windows_gfortran:
stage: make
script:
- call "%BuildServer\\Windows\\build.bat" gfortran
tags:
- sci
- windows-10
make:windows_ifort:
stage: make
script:
- call "%BuildServer\\Windows\\build.bat" ifort
tags:
- sci
- windows-10
\ No newline at end of file
FROM ci_crysfml_xenial_gfortran
COPY ./ /app/
WORKDIR /app
CMD BuildServer/Unix/build.sh gfortran
\ No newline at end of file
FROM ci_crysfml_xenial_ifort
COPY ./ /app/
WORKDIR /app
CMD BuildServer/Unix/build.sh ifort
\ No newline at end of file
FROM ubuntu:xenial
ENV https_proxy http://proxy.ill.fr:8888
ENV http_proxy http://proxy.ill.fr:8888
RUN apt-get update
RUN apt-get install -y cmake
RUN apt-get install -y g++
RUN apt-get install -y gfortran
FROM ubuntu:xenial
ENV https_proxy http://proxy.ill.fr:8888
ENV http_proxy http://proxy.ill.fr:8888
RUN apt-get update
RUN apt-get install -y cmake
RUN apt-get install -y g++
ENV PATH=/opt/intel/bin:$PATH
\ No newline at end of file
compiler=$1
echo "Building CrysFML with ${compiler##/*}"
rm -Rf build_${compiler##/*}
mkdir build_${compiler##/*}
cd build_${compiler##/*}
cmake -D CMAKE_Fortran_COMPILER=${compiler} ..
cmake --build .
\ No newline at end of file
set compiler=%1
echo "Building CrysFML with %compiler%"
set OPTIONS=""
if %compiler% neq ifort (
set OPTIONS=-G "NMake Makefiles"
)
rmdir build_%compiler% /s /q
mkdir build_%compiler%
cd build_%compiler%
cmake %OPTIONS% -D CMAKE_Fortran_COMPILER=%compiler% ..
cmake --build .
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment