File: .gitlab-ci.yml

package info (click to toggle)
chromaprint 1.4.3-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,676 kB
  • sloc: cpp: 5,976; ansic: 2,521; python: 657; makefile: 167; sh: 93
file content (83 lines) | stat: -rw-r--r-- 1,766 bytes parent folder | download
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
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 VERBOSE=1
    - make check VERBOSE=1

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/googletest/googletest/
  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-linux-armhf: &package-linux-armhf
  <<: *package
  tags:
    - linux
    - armhf

package linux i686: *package
package linux x86_64: *package
package linux armhf: *package-linux-armhf
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