Commit 312c9505 authored by ulrich_y's avatar ulrich_y
Browse files

Don't do speed tests during CI

parent 1c6d8bd1
...@@ -4,9 +4,10 @@ ...@@ -4,9 +4,10 @@
before_script: before_script:
- date - date
- whoami - whoami
- export PATH=/afs/psi.ch/sys/psi.x86_64_slp6/Programming/gcc/8.2.0/bin/:/afs/psi.ch/sys/psi.x86_64_slp6/Programming/mathematica/11.0/Executables/:$PATH - export PATH=/afs/psi.ch/sys/psi.x86_64_slp6/Programming/gcc/8.2.0/bin/:/afs/psi.ch/sys/psi.x86_64_slp6/Programming/mathematica/11.0/Executables/:$PATH:/scratch/ulrich/usr/bin/
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/afs/psi.ch/sys/psi.x86_64_slp6/Programming/gcc/8.2.0/lib64/:/afs/psi.ch/sys/psi.x86_64_slp6/Programming/gcc/8.2.0/lib - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/scratch/ulrich/usr/lib/:/afs/psi.ch/sys/psi.x86_64_slp6/Programming/gcc/8.2.0/lib64/:/afs/psi.ch/sys/psi.x86_64_slp6/Programming/gcc/8.2.0/lib
- export PERL5LIB=/scratch/ulrich/usr/lib64/perl5/:/scratch/ulrich/usr/share/perl5/ - export PERL5LIB=/scratch/ulrich/usr/lib64/perl5/:/scratch/ulrich/usr/share/perl5/
- export PKG_CONFIG_PATH=/scratch/ulrich/usr/lib/pkgconfig
- gfortran -v - gfortran -v
cache: cache:
...@@ -24,7 +25,7 @@ configure: ...@@ -24,7 +25,7 @@ configure:
stage: configure stage: configure
script: script:
- mkdir usr/ - mkdir usr/
- ./configure --with-mcc --coverage - ./configure --ci
compile: compile:
stage: build stage: build
......
...@@ -28,8 +28,10 @@ PROGRAM TEST ...@@ -28,8 +28,10 @@ PROGRAM TEST
#ifdef HAVE_GINAC #ifdef HAVE_GINAC
#ifdef HAVE_MM #ifdef HAVE_MM
call do_ginac_tests call do_ginac_tests
#ifndef NOSPEED
call do_timing_tests(5) call do_timing_tests(5)
#endif #endif
#endif
#endif #endif
if(tests_successful) then if(tests_successful) then
...@@ -383,6 +385,7 @@ CONTAINS ...@@ -383,6 +385,7 @@ CONTAINS
end subroutine end subroutine
#ifndef NOSPEED
subroutine do_one_speed_test(args, u, msg) subroutine do_one_speed_test(args, u, msg)
use maths_functions, only:clearcache use maths_functions, only:clearcache
implicit none implicit none
...@@ -488,6 +491,7 @@ CONTAINS ...@@ -488,6 +491,7 @@ CONTAINS
close(unit=9) close(unit=9)
end subroutine end subroutine
#endif
FUNCTION RAN2(randy) FUNCTION RAN2(randy)
......
...@@ -124,6 +124,13 @@ for arg in "$@" ; do ...@@ -124,6 +124,13 @@ for arg in "$@" ; do
CONF_QUAD=true ;; CONF_QUAD=true ;;
--coverage) --coverage)
COVERAGE=true ;; COVERAGE=true ;;
--ci)
echo "Running in CI configuration. Will not perform speed tests!"
CONF_FFLAGS="$CONF_FLAGS -DNOSPEED"
HAVE_MCC=true
HAVE_GINAC=true
DEBUG=true
COVERAGE=true ;;
--help ) --help )
printhelp ;; printhelp ;;
-*) -*)
......
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