File: .gitlab-ci.yml

package info (click to toggle)
apt 1.4.10
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 18,620 kB
  • sloc: cpp: 64,196; sh: 22,804; xml: 4,633; perl: 578; ansic: 196; makefile: 30; python: 28
file content (34 lines) | stat: -rw-r--r-- 1,283 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
image: debian:stretch
variables:
  DEBIAN_FRONTEND: noninteractive

test as root:
  stage: test
  script:
    - adduser --home /home/travis travis --quiet --disabled-login --gecos "" --uid 1000
    - rm -f /etc/dpkg/dpkg.cfg.d/excludes
    - apt-get update
    - apt-get install -qq build-essential expect sudo ninja-build
    - chmod -R o+rwX $PWD
    - ./prepare-release travis-ci
    - sudo -u travis mkdir -p build .ccache
    - ( cd build && sudo -u travis cmake -DCMAKE_BUILD_TYPE=Release -G Ninja .. )
    - sudo -u travis ninja -C build
    - CTEST_OUTPUT_ON_FAILURE=1 ninja -C build test
    - unbuffer ./test/integration/run-tests -q -j 4

test as user:
  stage: test
  script:
    - adduser --home /home/travis travis --quiet --disabled-login --gecos "" --uid 1000
    - rm -f /etc/dpkg/dpkg.cfg.d/excludes
    - apt-get update
    - apt-get install -qq build-essential expect sudo ninja-build
    - chmod 755 /root
    - chmod -R o+rwX $PWD
    - ./prepare-release travis-ci
    - sudo -u travis mkdir -p build .ccache
    - ( cd build && sudo -u travis cmake -DCMAKE_BUILD_TYPE=Release -G Ninja .. )
    - sudo -u travis ninja -C build
    - sudo -u travis CTEST_OUTPUT_ON_FAILURE=1 ninja -C build test
    - sudo -u travis unbuffer ./test/integration/run-tests -q -j 4