-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy path.gitlab-ci.yml
103 lines (93 loc) · 2.48 KB
/
.gitlab-ci.yml
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
default:
tags:
- docker
# Image from https://hub.docker.com/_/gcc/ based on Debian
image: gcc:14
.autoconf:
stage: build
before_script:
- apt-get update &&
apt-get install -y libogg-dev libvorbis-dev
libsdl1.2-dev libpng-dev libtiff-dev
doxygen fig2dev texlive texlive-latex-extra
${INSTALL_COMPILER} ${INSTALL_EXTRA}
script:
- ./autogen.sh
- ./configure ${CONFIG_FLAGS} || cat config.log
- make
- make check
variables:
INSTALL_COMPILER: gcc g++
autotools-gcc:
extends: .autoconf
script:
- ./autogen.sh
- ./configure ${CONFIG_FLAGS} || cat config.log
- make
- make distcheck
artifacts:
paths:
- libtheora-*.tar.gz
expire_in: 2 week
autotools-gcc-builddir:
extends: .autoconf
script:
- ./autogen.sh
- mkdir build
- (cd build && ../configure ${CONFIG_FLAGS}) || cat config.log
- (cd build && make)
- (cd build && make check)
autotools-clang:
extends: .autoconf
script:
- ./autogen.sh
- ./configure ${CONFIG_FLAGS} || cat config.log
- make
- make distcheck
variables:
INSTALL_COMPILER: clang
CONFIG_FLAGS: CFLAGS=-Wreserved-identifier
CC: clang
autotools-disable-encoding:
extends: .autoconf
variables:
CONFIG_FLAGS: --disable-encode
autotools-enable-telemetry:
extends: .autoconf
variables:
CONFIG_FLAGS: --enable-telemetry
autotools-enable-valgrind-testing:
extends: .autoconf
variables:
INSTALL_EXTRA: libtool valgrind
CONFIG_FLAGS: --enable-valgrind-testing
autotools-enable-gcc-sanitizers:
extends: .autoconf
variables:
INSTALL_EXTRA: libtool
CONFIG_FLAGS: --enable-gcc-sanitizers
autotools-mingw:
extends: .autoconf
script:
- mkdir build-mingw
- git clone https://gitlab.xiph.org/xiph/ogg.git build-mingw/ogg-mingw
- (cd build-mingw/ogg-mingw && ./autogen.sh)
- (cd build-mingw/ogg-mingw && ./configure ${CONFIG_FLAGS})
- (cd build-mingw/ogg-mingw && make)
- ./autogen.sh
- (cd build-mingw && CPPFLAGS=-I`pwd`/ogg-mingw/include LDFLAGS=-L`pwd`/ogg-mingw/src ../configure --disable-examples ${CONFIG_FLAGS})
- (cd build-mingw && make)
variables:
CONFIG_FLAGS: --disable-shared --host=x86_64-pc-linux-gnu
INSTALL_COMPILER: gcc-mingw-w64
CC: x86_64-w64-mingw32-gcc
scons:
stage: build
before_script:
- apt-get update &&
apt-get install -y libogg-dev libvorbis-dev
libsdl1.2-dev libpng-dev libtiff-dev
scons
script:
- scons
- scons -c