File: .travis.yml

package info (click to toggle)
kthresher 1.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 172 kB
  • sloc: python: 408; makefile: 5; sh: 2
file content (66 lines) | stat: -rw-r--r-- 1,367 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
---
language: generic
dist: xenial
sudo: enabled
branches:
  only:
  - master
  - development

matrix:
  include:
    - name: "Ubuntu 14.04 (trusty)"
      env:
        - DISTRO='ubuntu:14.04'
    - name: "Ubuntu 16.04 (xenial)"
      env:
        - DISTRO='ubuntu:16.04'
    - name: "Ubuntu 18.04 (bionic)"
      env:
        - DISTRO='ubuntu:18.04'
    - name: "Debian 8 (jessie)"
      env:
        - DISTRO='debian:8'
    - name: "Debian 9 (stretch)"
      env:
        - DISTRO='debian:9'
    - name: "Debian (buster)"
      env:
        - DISTRO='debian:buster'

before_install:
  - |
    docker run \
      --detach \
      --rm \
      --tty \
      --privileged \
      --network=host \
      --name kthresher_on_${DISTRO/:/_} \
      --mount type=bind,src="$(pwd)",dst=/kthresher \
      ${DISTRO}
  - |
    docker exec \
    kthresher_on_${DISTRO/:/_} \
      bash -c \
       'apt-get update; \
        apt-get install -yq --no-install-suggests --no-install-recommends \
         python \
         python3 \
         python-apt \
         python3-apt \
         python-pip \
         python3-pip \
         python-setuptools \
         python3-setuptools'
  - |
    docker exec \
      kthresher_on_${DISTRO/:/_} \
      bash -c 'pip install tox'

script:
  - >
    docker exec \
      kthresher_on_${DISTRO/:/_} \
      bash -c 'cd /kthresher/; tox'
...