forked from acoustid/chromaprint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
82 lines (70 loc) · 1.69 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
image: docker.oxygene.sk/acoustid/chromaprint-build
stages:
- test
- package
.test: &test
stage: test
script:
- JOB_NAME=($CI_BUILD_NAME)
- mkdir build.test.${JOB_NAME[1]}
- cd build.test.${JOB_NAME[1]}
- cmake -DCMAKE_BUILD_TYPE=Release -DFFT_LIB=${JOB_NAME[1]} -DBUILD_TESTS=ON $EXTRA_CMAKE_ARGS ..
- make
- make check
test avfft:
<<: *test
variables:
EXTRA_CMAKE_ARGS: -DBUILD_TOOLS=ON
test fftw3:
<<: *test
variables:
EXTRA_CMAKE_ARGS: -DBUILD_TOOLS=ON
test fftw3f:
<<: *test
variables:
EXTRA_CMAKE_ARGS: -DBUILD_TOOLS=ON
test kissfft:
<<: *test
variables:
EXTRA_CMAKE_ARGS: -DBUILD_TOOLS=ON
test vdsp:
<<: *test
variables:
EXTRA_CMAKE_ARGS: -DCMAKE_CXX_FLAGS='-stdlib=libc++' -DGTEST_ROOT=/usr/local/src/gtest-1.7.0
tags:
- osx
.package: &package
stage: package
script:
- JOB_NAME=($CI_BUILD_NAME)
- export OS=${JOB_NAME[1]}
- export ARCH=${JOB_NAME[2]}
- export TAG=$CI_BUILD_TAG
- export BRANCH=$CI_BUILD_REF_NAME
- ./package/build.sh
artifacts:
paths:
- chromaprint-*.zip
- chromaprint-*.tar.gz
expire_in: 7d
.package-macos: &package-macos
<<: *package
tags:
- osx
.package-raspberrypi: &package-raspberrypi
<<: *package
tags:
- raspberrypi
package linux i686: *package
package linux x86_64: *package
package linux armhf: *package-raspberrypi
package windows i686: *package
package windows x86_64: *package
package macos x86_64: *package-macos
package src:
<<: *package
script:
- VERSION=$(echo $CI_BUILD_TAG | sed 's/^v//')
- git archive --format=tar.gz --prefix=chromaprint-$CI_BUILD_TAG/ $CI_BUILD_TAG >chromaprint-$VERSION.tar.gz
only:
- tags