ci(travis): Enabled docker on travis

This commit is contained in:
bigeagle 2016-12-10 02:49:27 +08:00
parent ebd462be36
commit 9645fd44ec
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,5 @@
sudo: required
language: go
go:
- 1.6
@ -11,8 +13,14 @@ before_install:
os:
- linux
services:
- docker
before_script:
- sudo cgcreate -t travis -a travis -g memory:tunasync
- sudo mount -t memory -o memory memory /sys/fs/cgroup/memory
- mount
- sudo cgcreate -a $USER -t $USER -g memory:tunasync
- docker pull alpine
script:
- ./.testandcover.bash

View File

@ -15,7 +15,7 @@ import (
"github.com/codeskyblue/go-sh"
)
var cgSubsystem = "cpu"
var cgSubsystem = "cpuset"
type cgroupHook struct {
emptyHook