summaryrefslogtreecommitdiff
path: root/.cirrus.yml
blob: 5687c4e6b047c7cb908e7dd339fb2d24264b2b30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
task:
  name: build_sdl1
  timeout_in: 120m
  freebsd_instance:
    matrix:
      image_family: freebsd-13-0-snap
      image_family: freebsd-12-1
      image_family: freebsd-12-0
      image_family: freebsd-12-1-snap
      image_family: freebsd-11-3-snap

  env:
    CIRRUS_CLONE_DEPTH: 1
    MAKE_FLAGS: -j 2
    PACKAGES: autoconf automake libtool pkgconf gcc libxml2 freetype2 png curl build xorg glib xorgproto intltool gettext gettext-runtime gettext-tools git sdl sdl_gfx sdl_image sdl_mixer sdl_net sdl_ttf git gdb valgrind
    LOCALBASE: /usr/local
    LDFLAGS: -L${LOCALBASE}/lib -lintl
    CXX: clang++
    CC: clang
    LOGFILE: clang.log

  before_script:
    - gcc --version || true
    - clang --version || true
    - echo ${LOCALBASE}
    - echo ${LDFLAGS}
    - mkdir logs || true

  pkginstall_script:
    - pkg update -f
    - pkg install -y ${PACKAGES}

  env_script:
    - env

  build_script:
    - ./tools/ci/jobs/any_compiler.sh --with-libintl-prefix=${LOCALBASE}

  always:
    config_artifacts:
      path: "config.log"

  always:
    all_artifacts:
      path: "*"

  always:
    logs_artifacts:
      path: "logs/*"

  run_script:
    - ./tools/ci/scripts/runtests.sh

  build_tests_script:
    - make clean
    - ./tools/ci/jobs/any_compiler_tests.sh --without-dyecmd --without-manaversegame --with-libintl-prefix=${LOCALBASE}

  always:
    config_tests_artifacts:
      path: "config.log"

  always:
    all_tests_artifacts:
      path: "*"

  always:
    logs_tests_artifacts:
      path: "logs/*"


task:
  name: build_sdl2
  timeout_in: 120m
  freebsd_instance:
    matrix:
      image_family: freebsd-13-0-snap
      image_family: freebsd-12-1
      image_family: freebsd-12-0
      image_family: freebsd-12-1-snap
      image_family: freebsd-11-3-snap

  env:
    CIRRUS_CLONE_DEPTH: 1
    MAKE_FLAGS: -j 2
    PACKAGES: autoconf automake libtool pkgconf gcc libxml2 freetype2 png curl build xorg glib xorgproto intltool gettext gettext-runtime gettext-tools git sdl2 sdl2_gfx sdl2_image sdl2_mixer sdl2_net sdl2_ttf git gdb valgrind
    LOCALBASE: /usr/local
    LDFLAGS: -L${LOCALBASE}/lib -lintl
    CXX: clang++
    CC: clang
    LOGFILE: clang.log

  before_script:
    - gcc --version || true
    - clang --version || true
    - echo ${LOCALBASE}
    - echo ${LDFLAGS}
    - mkdir logs || true

  pkginstall_script:
    - pkg update -f
    - pkg install -y ${PACKAGES}

  env_script:
    - env

  build_script:
    - ./tools/ci/jobs/any_compiler.sh --with-sdl2 --with-libintl-prefix=${LOCALBASE}

  always:
    config_artifacts:
      path: "config.log"

  always:
    all_artifacts:
      path: "*"

  always:
    logs_artifacts:
      path: "logs/*"

  run_script:
    - ./tools/ci/scripts/runtests.sh

  build_tests_script:
    - make clean
    - ./tools/ci/jobs/any_compiler_tests.sh --without-dyecmd --without-manaversegame --with-libintl-prefix=${LOCALBASE} --with-sdl2

  always:
    config_tests_artifacts:
      path: "config.log"

  always:
    all_tests_artifacts:
      path: "*"

  always:
    logs_tests_artifacts:
      path: "logs/*"