1stages: 2 - test 3 - ci-status 4 5variables: 6 GIT_STRATEGY: fetch 7 GIT_DEPTH: 1 8 9.test: 10 stage: test 11 image: jedbrown/mpich 12 before_script: 13 - echo nproc=$(nproc) 14 - cat /proc/cpuinfo 15 script: 16 - python3 ./configure --with-debugging=0 COPTFLAGS='-O -march=native' CXXOPTFLAGS='-O -march=native' FOPTFLAGS='-O -march=native' ${CONFIG_OPTS} 17 - make -j$(nproc) -l$(nproc) 18 - make -j$(nproc) -l$(nproc) -f gmakefile test search="${TEST_SEARCH}" 19 20mpich: 21 extends: .test 22 variables: 23 CONFIG_OPTS: --with-mpi-dir=/usr/local --with-fc=0 24 TEST_SEARCH: snes_tutorials-ex48% 25 26uni-complex-float-int64: 27 extends: .test 28 variables: 29 CONFIG_OPTS: < 30 --with-mpi=0 31 --with-scalar-type=complex --with-precision=single --with-64-bit-indices 32 TEST_SEARCH: ts_tutorials-ex11_adv_2d_quad_% 33 34mcs: 35 stage: test 36 tags: 37 - mcs 38 before_script: 39 - hostname 40 - cat /etc/issue 41 - echo $(nproc) 42 - cat /proc/cpuinfo 43 script: 44 - ./configure --with-debugging=0 COPTFLAGS='-O -march=native' CXXOPTFLAGS='-O -march=native' FOPTFLAGS='-O -march=native' 45 - make 46 - make check 47 48.status: 49 stage: ci-status 50 image: jedbrown/alpine-curl 51 script: 52 - BUILD_KEY=push BITBUCKET_NAMESPACE=petsc ./.gitlab-build-status.sh 53 54success: 55 extends: .status 56 variables: 57 BUILD_STATUS: passed 58 when: on_success 59 60failure: 61 extends: .status 62 variables: 63 BUILD_STATUS: failed 64 when: on_failure 65