Commit 1e8c4482 authored by incardon's avatar incardon

VCluster test CI Gitlab

parent 867e4a27
...@@ -15,7 +15,9 @@ centos_run: ...@@ -15,7 +15,9 @@ centos_run:
dependencies: dependencies:
- centos_build - centos_build
script: script:
- ./run.sh $CI_PROJECT_DIR $CI_RUNNER_TAGS $CI_COMMIT_REF_NAME - ./run.sh $CI_PROJECT_DIR $CI_RUNNER_TAGS 3 $CI_COMMIT_REF_NAME
- ./run.sh $CI_PROJECT_DIR $CI_RUNNER_TAGS 4 $CI_COMMIT_REF_NAME
- ./run.sh $CI_PROJECT_DIR $CI_RUNNER_TAGS 5 $CI_COMMIT_REF_NAME
mac_build: mac_build:
...@@ -35,7 +37,9 @@ mac_run: ...@@ -35,7 +37,9 @@ mac_run:
dependencies: dependencies:
- mac_build - mac_build
script: script:
- ./run.sh $CI_PROJECT_DIR $CI_RUNNER_TAGS $CI_COMMIT_REF_NAME - ./run.sh $CI_PROJECT_DIR $CI_RUNNER_TAGS 3 $CI_COMMIT_REF_NAME
- ./run.sh $CI_PROJECT_DIR $CI_RUNNER_TAGS 4 $CI_COMMIT_REF_NAME
- ./run.sh $CI_PROJECT_DIR $CI_RUNNER_TAGS 5 $CI_COMMIT_REF_NAME
ubuntu_build: ubuntu_build:
stage: build stage: build
...@@ -54,5 +58,7 @@ ubuntu_run: ...@@ -54,5 +58,7 @@ ubuntu_run:
dependencies: dependencies:
- ubuntu_build - ubuntu_build
script: script:
- ./run.sh $CI_PROJECT_DIR $CI_RUNNER_TAGS $CI_COMMIT_REF_NAME - ./run.sh $CI_PROJECT_DIR $CI_RUNNER_TAGS 3 $CI_COMMIT_REF_NAME
- ./run.sh $CI_PROJECT_DIR $CI_RUNNER_TAGS 4 $CI_COMMIT_REF_NAME
- ./run.sh $CI_PROJECT_DIR $CI_RUNNER_TAGS 5 $CI_COMMIT_REF_NAME
...@@ -7,14 +7,12 @@ echo "Directory: $1" ...@@ -7,14 +7,12 @@ echo "Directory: $1"
echo "Machine: $2" echo "Machine: $2"
echo "Branch: $4" echo "Branch: $4"
exit 1
cd "$1/openfpm_vcluster" cd "$1/openfpm_vcluster"
source $HOME/openfpm_vars_$4
if [ "$2" == "wetcluster" ]; then if [ "$2" == "wetcluster" ]; then
export MODULEPATH="/sw/apps/modules/modulefiles:$MODULEPATH" export MODULEPATH="/sw/apps/modules/modulefiles:$MODULEPATH"
## Run on the cluster ## Run on the cluster
bsub -o output_run2.%J -K -n 2 -R "span[hosts=1]" "module load openmpi/1.8.1 ; module load gcc/4.9.2; mpirun -np $3 ./src/vcluster_test" bsub -o output_run2.%J -K -n 2 -R "span[hosts=1]" "module load openmpi/1.8.1 ; module load gcc/4.9.2; mpirun -np $3 ./src/vcluster_test"
...@@ -49,7 +47,9 @@ elif [ "$2" == "taurus" ]; then ...@@ -49,7 +47,9 @@ elif [ "$2" == "taurus" ]; then
else else
source $HOME/.bashrc source $HOME/.bashrc
echo "$PATH" export PATH="$PATH:$HOME/openfpm_dependencies/openfpm_vcluster/MPI/bin"
exit 1
mpirun -np $3 ./src/vcluster_test mpirun -np $3 ./src/vcluster_test
if [ $? -ne 0 ]; then exit 1 ; fi if [ $? -ne 0 ]; then exit 1 ; fi
......
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