Merge pull request #1312 from Random-Liu/travis-trusty
Explicitly specify trusty in travis.
This commit is contained in:
commit
22b18262e7
@ -22,7 +22,7 @@ install:
|
|||||||
- ps: $psversiontable
|
- ps: $psversiontable
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- bash.exe -elc "mingw32-make"
|
- bash.exe -elc "mingw32-make.exe"
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- bash.exe -elc "mingw32-make test"
|
- bash.exe -elc "mingw32-make.exe test"
|
||||||
|
@ -18,5 +18,6 @@ run:
|
|||||||
deadline: 2m
|
deadline: 2m
|
||||||
skip-dirs:
|
skip-dirs:
|
||||||
- integration
|
- integration
|
||||||
|
- pkg/api
|
||||||
skip-files:
|
skip-files:
|
||||||
- ".*_test.go"
|
- ".*_test.go"
|
||||||
|
@ -21,16 +21,14 @@ cache:
|
|||||||
- "${HOME}/google-cloud-sdk/"
|
- "${HOME}/google-cloud-sdk/"
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
# libseccomp in trusty is not new enough, need backports version.
|
|
||||||
- sudo sh -c "echo 'deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse' > /etc/apt/sources.list.d/backports.list"
|
|
||||||
- sudo apt-get update
|
- sudo apt-get update
|
||||||
# Enable ipv6 for dualstack integration test.
|
# Enable ipv6 for dualstack integration test.
|
||||||
- sudo sysctl net.ipv6.conf.all.disable_ipv6=0
|
- sudo sysctl net.ipv6.conf.all.disable_ipv6=0
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- sudo apt-get install btrfs-tools
|
- sudo apt-get install btrfs-tools
|
||||||
- sudo apt-get install libseccomp2/trusty-backports
|
- sudo apt-get install libseccomp2
|
||||||
- sudo apt-get install libseccomp-dev/trusty-backports
|
- sudo apt-get install libseccomp-dev
|
||||||
- sudo apt-get install socat
|
- sudo apt-get install socat
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
5
Makefile
5
Makefile
@ -190,7 +190,10 @@ install.tools: .install.gitvalidation .install.golangci-lint .install.vndr ## in
|
|||||||
|
|
||||||
.install.golangci-lint:
|
.install.golangci-lint:
|
||||||
@echo "$(WHALE) $@"
|
@echo "$(WHALE) $@"
|
||||||
$(GO) get -u github.com/golangci/golangci-lint/cmd/golangci-lint
|
$(GO) get -d github.com/golangci/golangci-lint/cmd/golangci-lint
|
||||||
|
@cd $(GOPATH)/src/github.com/golangci/golangci-lint/cmd/golangci-lint; \
|
||||||
|
git checkout v1.18.0; \
|
||||||
|
go install
|
||||||
|
|
||||||
.install.vndr:
|
.install.vndr:
|
||||||
@echo "$(WHALE) $@"
|
@echo "$(WHALE) $@"
|
||||||
|
@ -22,6 +22,7 @@ import (
|
|||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
@ -63,11 +64,12 @@ var criRoot = flag.String("cri-root", "/var/lib/containerd/io.containerd.grpc.v1
|
|||||||
var runtimeHandler = flag.String("runtime-handler", "", "The runtime handler to use in the test.")
|
var runtimeHandler = flag.String("runtime-handler", "", "The runtime handler to use in the test.")
|
||||||
var containerdBin = flag.String("containerd-bin", "containerd", "The containerd binary name. The name is used to restart containerd during test.")
|
var containerdBin = flag.String("containerd-bin", "containerd", "The containerd binary name. The name is used to restart containerd during test.")
|
||||||
|
|
||||||
func init() {
|
func TestMain(m *testing.M) {
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
if err := ConnectDaemons(); err != nil {
|
if err := ConnectDaemons(); err != nil {
|
||||||
logrus.WithError(err).Fatalf("Failed to connect daemons")
|
logrus.WithError(err).Fatalf("Failed to connect daemons")
|
||||||
}
|
}
|
||||||
|
os.Exit(m.Run())
|
||||||
}
|
}
|
||||||
|
|
||||||
// ConnectDaemons connect cri plugin and containerd, and initialize the clients.
|
// ConnectDaemons connect cri plugin and containerd, and initialize the clients.
|
Loading…
Reference in New Issue
Block a user