xref: /petsc/.gitlab-ci.yml (revision 44cd386568f220a2f046cbe5ffe54b5ca72e5ca9)
1340aff75SJed Brownstages:
2340aff75SJed Brown  - test
3340aff75SJed Brown  - ci-status
4340aff75SJed Brown
5340aff75SJed Brownvariables:
6340aff75SJed Brown  GIT_STRATEGY: fetch
7340aff75SJed Brown  GIT_DEPTH: 1
8340aff75SJed Brown
9e74c1a09SJed Brown.test:
10340aff75SJed Brown  stage: test
11340aff75SJed Brown  image: jedbrown/mpich
12340aff75SJed Brown  before_script:
13340aff75SJed Brown    - echo nproc=$(nproc)
14340aff75SJed Brown    - cat /proc/cpuinfo
15340aff75SJed Brown  script:
16e74c1a09SJed Brown    - python3 ./configure --with-debugging=0 COPTFLAGS='-O -march=native' CXXOPTFLAGS='-O -march=native' FOPTFLAGS='-O -march=native' ${CONFIG_OPTS}
17e74c1a09SJed Brown    - make -j$(nproc) -l$(nproc)
18e74c1a09SJed Brown    - make -j$(nproc) -l$(nproc) -f gmakefile test search="${TEST_SEARCH}"
19e74c1a09SJed Brown
20e74c1a09SJed Brownmpich:
21e74c1a09SJed Brown  extends: .test
22e74c1a09SJed Brown  variables:
23e74c1a09SJed Brown    CONFIG_OPTS: --with-mpi-dir=/usr/local --with-fc=0
24e74c1a09SJed Brown    TEST_SEARCH: snes_tutorials-ex48%
25340aff75SJed Brown
26340aff75SJed Brownuni-complex-float-int64:
27e74c1a09SJed Brown  extends: .test
28e74c1a09SJed Brown  variables:
29e74c1a09SJed Brown    CONFIG_OPTS: <
30e74c1a09SJed Brown      --with-mpi=0
31340aff75SJed Brown      --with-scalar-type=complex --with-precision=single --with-64-bit-indices
32e74c1a09SJed Brown    TEST_SEARCH: ts_tutorials-ex11_adv_2d_quad_%
33340aff75SJed Brown
34*44cd3865SJed Brownmcs:
35*44cd3865SJed Brown  stage: test
36*44cd3865SJed Brown  tags:
37*44cd3865SJed Brown    - mcs
38*44cd3865SJed Brown  before_script:
39*44cd3865SJed Brown    - hostname
40*44cd3865SJed Brown    - cat /etc/issue
41*44cd3865SJed Brown    - echo $(nproc)
42*44cd3865SJed Brown    - cat /proc/cpuinfo
43*44cd3865SJed Brown  script:
44*44cd3865SJed Brown    - ./configure  --with-debugging=0 COPTFLAGS='-O -march=native' CXXOPTFLAGS='-O -march=native' FOPTFLAGS='-O -march=native'
45*44cd3865SJed Brown    - make
46*44cd3865SJed Brown    - make check
47*44cd3865SJed Brown
48e74c1a09SJed Brown.status:
49340aff75SJed Brown  stage: ci-status
50340aff75SJed Brown  image: jedbrown/alpine-curl
51340aff75SJed Brown  script:
52e74c1a09SJed Brown    - BUILD_KEY=push BITBUCKET_NAMESPACE=petsc ./.gitlab-build-status.sh
53e74c1a09SJed Brown
54e74c1a09SJed Brownsuccess:
55e74c1a09SJed Brown  extends: .status
56e74c1a09SJed Brown  variables:
57e74c1a09SJed Brown    BUILD_STATUS: passed
58340aff75SJed Brown  when: on_success
59340aff75SJed Brown
60340aff75SJed Brownfailure:
61e74c1a09SJed Brown  extends: .status
62e74c1a09SJed Brown  variables:
63e74c1a09SJed Brown    BUILD_STATUS: failed
64340aff75SJed Brown  when: on_failure
65