File: .travis.yml

package info (click to toggle)
golang-gopkg-lxc-go-lxc.v2 0.0+git20190625.f4822c6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 404 kB
  • sloc: ansic: 500; makefile: 81
file content (48 lines) | stat: -rw-r--r-- 1,204 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
language: go

os:
  - linux

go:
  - "1.10"
  - "1.11"
  - "1.12"
  - tip

matrix:
  fast_finish: true
  allow_failures:
    - go: tip

before_install:
 - sudo add-apt-repository ppa:ubuntu-lxc/daily -y
 - sudo apt-get update
 - sudo apt-get install -qq lxc lxc-dev uidmap busybox
 - echo "${USER}:100000:65536" | sudo tee /etc/subuid
 - echo "${USER}:100000:65536" | sudo tee /etc/subgid
 - echo "${USER} veth lxcbr0 10" | sudo tee -a /etc/lxc/lxc-usernet
 - mkdir -p ${HOME}/.config/lxc/
 - cp /etc/lxc/default.conf ${HOME}/.config/lxc/default.conf
 - echo "lxc.id_map = u 0 100000 65536" | sudo tee -a ${HOME}/.config/lxc/default.conf
 - echo "lxc.id_map = g 0 100000 65536" | sudo tee -a ${HOME}/.config/lxc/default.conf
 - "make setup-test-cgroup"
 - mkdir -p ${HOME}/.local/share/lxc
 - chmod +x ${HOME}
 - chmod +x ${HOME}/.local
 - chmod +x ${HOME}/.local/share
 - chmod +x ${HOME}/.local/share/lxc

install:
  - go get golang.org/x/tools/cmd/goimports
  - go get gopkg.in/lxc/go-lxc.v2

script:
  - "make all"
  - "make test"
  - "make test-race"
  - "make test-privileged"
  - "make test-privileged-race"
  - "make cover"

notifications:
  webhooks: https://linuxcontainers.org/webhook-lxcbot/