.gitlab-ci.yml 2.32 KB
Newer Older
Jonas Schwab's avatar
Jonas Schwab committed
1
2
variables:
  BRANCH_R: "master"
3
4
  
.test_template: &test_definition
Jonas Schwab's avatar
Jonas Schwab committed
5
  rules:
6
7
    - if: '$BRANCH_T'
      when: never
Jonas Schwab's avatar
Jonas Schwab committed
8
9
10
11
12
    - changes:
      - Run.py
      - default_variables.py
      - py_alf.py
  script:
Jonas Schwab's avatar
Jonas Schwab committed
13
    - apt-get update && apt-get install -y pylint3 python3-numpy git
Jonas Schwab's avatar
Jonas Schwab committed
14
15
    - if [ $(command -v pylint3) ]; then linter='pylint3'; else linter='pylint'; fi
    - $linter -E Run.py default_variables.py py_alf.py
Jonas Schwab's avatar
Jonas Schwab committed
16
    - git clone https://git.physik.uni-wuerzburg.de/ALF/ALF.git
Jonas Schwab's avatar
Jonas Schwab committed
17
    - ./Run.py -R --alfdir ./ALF --machine $MACHINE --branch_R $BRANCH_R --ham_name_R Hubbard_Plain_Vanilla
Jonas Schwab's avatar
Jonas Schwab committed
18
19
20
21

.warn_template: &warn_definition
  allow_failure: true
  rules:
22
23
    - if: '$BRANCH_T'
      when: never
Jonas Schwab's avatar
Jonas Schwab committed
24
25
26
27
28
    - changes:
      - Run.py
      - default_variables.py
      - py_alf.py
  script:
Jonas Schwab's avatar
Jonas Schwab committed
29
30
    - apt-get update && apt-get install -y pylint3 python3-numpy
    - pylint3 Run.py default_variables.py py_alf.py
Jonas Schwab's avatar
Jonas Schwab committed
31
32
33
34
35
36
37
38
39
    
.test_branch_template: &test_branch_definition
  rules:
    - if: '$BRANCH_T'
      when: always
  script:
    - apt-get update && apt-get install -y python3-numpy git
    - export PYTHONPATH="$PWD:$PYTHONPATH"
    - cd Scripts
Jonas Schwab's avatar
Jonas Schwab committed
40
    - ./test_branch.py --branch_R $BRANCH_R --branch_T $BRANCH_T --machine $MACHINE
Florian Goth's avatar
Florian Goth committed
41

42
43

Test_Buster:
44
  image: git.physik.uni-wuerzburg.de:25812/z03/pdi/debian:buster-gfortran-blas-lapack-fftw-hdf5-scipy
Jonas Schwab's avatar
Jonas Schwab committed
45
46
  variables:
    MACHINE: "GNU"
Jonas Schwab's avatar
Jonas Schwab committed
47
  <<: *test_definition
48
49

Test_Stretch:
50
  image: git.physik.uni-wuerzburg.de:25812/z03/pdi/debian:stretch-gfortran-blas-lapack-fftw-hdf5-scipy
Jonas Schwab's avatar
Jonas Schwab committed
51
52
  variables:
    MACHINE: "GNU"
Jonas Schwab's avatar
Jonas Schwab committed
53
54
  <<: *test_definition
  
55
Test-PGI:
56
  image: git.physik.uni-wuerzburg.de:25812/z03/pdi/debian:bullseye-pgi-21-03
Jonas Schwab's avatar
Jonas Schwab committed
57
58
59
  variables:
    MACHINE: "PGI"
  <<: *test_definition
Jonas Schwab's avatar
Jonas Schwab committed
60

Jonas Schwab's avatar
Jonas Schwab committed
61

Jonas Schwab's avatar
Jonas Schwab committed
62
63
Warn_Buster:
  image: git.physik.uni-wuerzburg.de:25812/z03/pdi/debian:buster-gfortran-blas-lapack-fftw-hdf5-scipy
Jonas Schwab's avatar
Jonas Schwab committed
64
65
66
67
68
  <<: *warn_definition


Test_branch_Buster:
  image: git.physik.uni-wuerzburg.de:25812/z03/pdi/debian:buster-gfortran-blas-lapack-fftw-hdf5-scipy
Jonas Schwab's avatar
Jonas Schwab committed
69
70
  variables:
    MACHINE: "GNU"
Jonas Schwab's avatar
Jonas Schwab committed
71
72
73
74
  <<: *test_branch_definition

Test_branch_Stretch:
  image: git.physik.uni-wuerzburg.de:25812/z03/pdi/debian:stretch-gfortran-blas-lapack-fftw-hdf5-scipy
Jonas Schwab's avatar
Jonas Schwab committed
75
76
  variables:
    MACHINE: "GNU"
Jonas Schwab's avatar
Jonas Schwab committed
77
78
  <<: *test_branch_definition
  
79
Test_branch-PGI:
80
  image: git.physik.uni-wuerzburg.de:25812/z03/pdi/debian:bullseye-pgi-21-03
Jonas Schwab's avatar
Jonas Schwab committed
81
82
83
  variables:
    MACHINE: "PGI"
  <<: *test_branch_definition