-
Pietro Incardona authoredPietro Incardona authored
.gitlab-ci.yml 5.66 KiB
docker_almalinux_build:
stage: build
tags:
- centos-docker
image: 'almalinux:8.5'
artifacts:
paths:
- ./build/src/pdata
- ./build/openfpm_numerics/src/numerics
- ./openfpm_numerics/test
script:
- yum install -y openssh-clients cmake wget git gcc-c++ gcc-gfortran python
- mkdir -p openfpm_dependencies
- mkdir /root/.ssh && chmod 700 /root/.ssh
- cp id_rsa.pub /root/.ssh/id_rsa.pub && chmod 644 /root/.ssh/id_rsa.pub
- cp id_rsa /root/.ssh/id_rsa && chmod 600 /root/.ssh/id_rsa
- ssh-keyscan -H git.mpi-cbg.de >> ~/.ssh/known_hosts
- ls openfpm_dependencies
- echo "cifarm-centos-node" > hostname
- ./build.sh $CI_PROJECT_DIR unused pdata 0 $CI_COMMIT_REF_NAME
- ls -la build/src/pdata
cache:
when: always
key: $CI_COMMIT_REF_SLUG
paths:
- openfpm_dependencies/
docker_ubuntu_build:
stage: build
tags:
- ubuntu-docker
image: 'ubuntu:20.04'
artifacts:
paths:
- ./build/src/pdata
- ./build/openfpm_numerics/src/numerics
- ./openfpm_numerics/test
script:
- apt-get update
- DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata
- apt-get -y install cmake wget git g++ gfortran python2 python-is-python3
- mkdir -p openfpm_dependencies
- mkdir /root/.ssh && chmod 700 /root/.ssh
- cp id_rsa.pub /root/.ssh/id_rsa.pub && chmod 644 /root/.ssh/id_rsa.pub
- cp id_rsa /root/.ssh/id_rsa && chmod 600 /root/.ssh/id_rsa
- ssh-keyscan -H git.mpi-cbg.de >> ~/.ssh/known_hosts
- ls openfpm_dependencies
- echo "cifarm-ubuntu-node" > hostname
- ./build.sh $CI_PROJECT_DIR unused pdata 0 $CI_COMMIT_REF_NAME
- ls -la build/src/pdata
cache:
when: always
key: $CI_COMMIT_REF_SLUG
paths:
- openfpm_dependencies/
docker_ubuntu_run:
stage: test
tags:
- ubuntu-docker
image: 'ubuntu:20.04'
dependencies:
- docker_ubuntu_build
artifacts:
paths:
- ./build/src/pdata
- ./build/openfpm_numerics/src/numerics
- ./openfpm_numerics/test
script: