Skip to content

Commit

Permalink
ci(travis): Enabled docker on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
bigeagle committed Dec 9, 2016
1 parent ebd462b commit 9645fd4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
sudo: required

language: go
go:
- 1.6
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion worker/cgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/codeskyblue/go-sh"
)

var cgSubsystem = "cpu"
var cgSubsystem = "cpuset"

type cgroupHook struct {
emptyHook
Expand Down

0 comments on commit 9645fd4

Please sign in to comment.