.gitlab-ci.yml 2.2 KB
Newer Older
Sébastien Villemot's avatar
Sébastien Villemot committed
1
2
variables:
  GIT_SUBMODULE_STRATEGY: normal
3
  TERM: linux
Sébastien Villemot's avatar
Sébastien Villemot committed
4

5
6
7
before_script:
  - wget http://www.dynare.org/x13/x13.zip
  - unzip x13.zip
8
  - cp -r binaries/linux matlab/modules/dseries/externals/x13
9

Sébastien Villemot's avatar
Sébastien Villemot committed
10
11
12
13
14
build_binaries:
  stage: build
  script:
    - autoreconf -si
    - './configure --with-matlab=$(dirname $(dirname $(readlink -f `which matlab`))) MATLAB_VERSION=$(echo version | matlab -nodesktop -nodisplay -nosplash 2>/dev/null | sed -En "/ans\ =/!d;n;n;s/^[^0-9]*([0-9]+\.[0-9]+).*$/\1/;p")'
Sébastien Villemot's avatar
Sébastien Villemot committed
15
    - make -j $(nproc) LN_S="cp -p"
Sébastien Villemot's avatar
Sébastien Villemot committed
16
17
  artifacts:
    paths:
Sébastien Villemot's avatar
Sébastien Villemot committed
18
      - matlab/preprocessor*/*
Sébastien Villemot's avatar
Sébastien Villemot committed
19
20
21
      - mex/octave/
      - mex/matlab/
      - dynare++/src/dynare++
Sébastien Villemot's avatar
Sébastien Villemot committed
22
    expire_in: 1 week
Sébastien Villemot's avatar
Sébastien Villemot committed
23
24
25
26
27

build_doc:
  stage: build
  script:
    - autoreconf -si
Sébastien Villemot's avatar
Sébastien Villemot committed
28
    - ./configure --disable-matlab --disable-octave
Sébastien Villemot's avatar
Sébastien Villemot committed
29
30
31
32
33
34
    - make -j $(nproc) info pdf html
  artifacts:
    paths:
      - doc/dynare.info*
      - doc/dynare.html
      - doc/dynare.pdf
35
36
37
38
39
40

testsuite_matlab:
  stage: test
  script:
    - autoreconf -si
    - './configure --disable-octave --with-matlab=$(dirname $(dirname $(readlink -f `which matlab`))) MATLAB_VERSION=$(echo version | matlab -nodesktop -nodisplay -nosplash 2>/dev/null | sed -En "/ans\ =/!d;n;n;s/^[^0-9]*([0-9]+\.[0-9]+).*$/\1/;p")'
41
    - make -j $(($(nproc) * 3 / 4)) -C tests check-matlab
42
43
44
45
46
47
  artifacts:
    paths:
      - tests/*.m.log
      - tests/*.m.trs
      - tests/*/*.m.log
      - tests/*/*.m.trs
48
49
      - tests/*/*/*.m.log
      - tests/*/*/*.m.trs
Sébastien Villemot's avatar
Sébastien Villemot committed
50
51
      - tests/run_test_matlab_output.txt
    when: always
52
53
54
  dependencies:
    - build_binaries

Sébastien Villemot's avatar
Sébastien Villemot committed
55
.testsuite_octave_template: &testsuite_octave_definition
56
57
58
59
60
61
62
  stage: test
  variables:
    OPENBLAS_NUM_THREADS: 1
  script:
    - autoreconf -si
    - ./configure --disable-matlab
    - make -j $(nproc) -C tests check-octave
63
64
65
66
67
68
  artifacts:
    paths:
      - tests/*.o.log
      - tests/*.o.trs
      - tests/*/*.o.log
      - tests/*/*.o.trs
69
70
      - tests/*/*/*.o.log
      - tests/*/*/*.o.trs
Sébastien Villemot's avatar
Sébastien Villemot committed
71
72
      - tests/run_test_octave_output.txt
    when: always
73
74
  dependencies:
    - build_binaries
Sébastien Villemot's avatar
Sébastien Villemot committed
75
76

testsuite_octave_auto:
Sébastien Villemot's avatar
Sébastien Villemot committed
77
  <<: *testsuite_octave_definition
78
79
80
  only:
    - tags
    - schedules
Sébastien Villemot's avatar
Sébastien Villemot committed
81
82

testsuite_octave_manual:
Sébastien Villemot's avatar
Sébastien Villemot committed
83
  <<: *testsuite_octave_definition
Sébastien Villemot's avatar
Sébastien Villemot committed
84
85
86
87
  except:
    - tags
    - schedules
  when: manual