File: .travis.yml

package info (click to toggle)
leatherman 1.12.1%2Bdfsg-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,964 kB
  • sloc: cpp: 14,765; python: 3,105; sh: 45; makefile: 11; ruby: 1
file content (40 lines) | stat: -rw-r--r-- 1,501 bytes parent folder | download | duplicates (3)
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
sudo: required
services:
  - docker

before_install:
  - docker pull gcr.io/cpp-projects/cpp-ci:1

script:
  - >
    docker run -v `pwd`:/leatherman gcr.io/cpp-projects/cpp-ci:1 /bin/bash -c "
    cd /leatherman &&
    rm locales/leatherman.pot &&
    cmake $EXTRA_VARS . &&
    mkdir dest &&
    make $TARGET DESTDIR=/leatherman/dest -j2 &&
    { [ '$COVERALLS' == 'ON' ] && coveralls --gcov-options '\-lp' -r . -b . -e src -e vendor >/dev/null || true; }
    "
  - if [ "$DO_RELEASE" == "true" ]; then tar czvf leatherman${PKG_SUFFIX}.tar.gz `find dest -type f -print`; fi

env:
  matrix:
    - TARGET=cpplint
    - TARGET=cppcheck
    - TARGET="all test install ARGS=-v" DO_RELEASE=true PKG_SUFFIX="" EXTRA_VARS="-DBOOST_STATIC=ON"
    - TARGET="all test install ARGS=-v" DO_RELEASE=true PKG_SUFFIX="-dynamic" EXTRA_VARS="-DLEATHERMAN_SHARED=ON"
    - TARGET="all test install ARGS=-v" EXTRA_VARS="-DCMAKE_BUILD_TYPE=Debug -DCOVERALLS=ON" COVERALLS=ON
    - TARGET="all test install ARGS=-v" EXTRA_VARS="-DLEATHERMAN_USE_LOCALES=OFF"
    - TARGET="all test install ARGS=-v" EXTRA_VARS="-DLEATHERMAN_GETTEXT=OFF"

deploy:
  provider: releases
  api_key:
    secure: k0rU0hNiUu7WqfrqlxP57bOg+phtFEgod/ViE6pJix53+6vpoyOdZzIc2lKCBongysRIAqPsSuNj00/PZxLSkVk2gNxXPpi+AScdh2fheYaWWCmyXuETm+A1nWMUPL7Ep/kIRffIl5I2bmGGqsyidBtdVFeYHp1wZhbHrxjYlYE=
  file_glob: true
  file: leatherman*.tar.gz
  skip_cleanup: true
  on:
    repo: puppetlabs/leatherman
    tags: true
    condition: '"$DO_RELEASE" == "true"'