language: node_js
node_js:
 - "0.12"
 - "iojs-v1.8.1"
 - "iojs"

env:
  global:
    - "HOST_IP=$(/sbin/ifconfig venet0:0 | grep 'inet addr' | awk -F: '{print $2}' | awk '{print $1}')"
    - DOCKER_HOST=tcp://$HOST_IP:2375
    - DOCKER_PORT_RANGE=2400:2500
    - SLIRP_PORTS=$(seq 2375 2500)

before_install:
  - sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
  - sudo sh -c "echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
  - echo exit 101 | sudo tee /usr/sbin/policy-rc.d
  - sudo chmod +x /usr/sbin/policy-rc.d

install:
  - sudo apt-get -qqy update
  - sudo apt-get -qqy --force-yes install lxc lxc-docker-1.2.0 slirp
  - sudo sudo usermod -aG docker "$USER"
  - git clone git://github.com/spotify/sekexe
  - npm install
  - echo $SHELL
  - cat /proc/meminfo

before_script:
  - "sekexe/run 'mount -t tmpfs -o size=3g tmpfs /var/lib/docker && docker -d -H tcp://0.0.0.0:2375' &"
  - "while ! docker info &> /dev/null ; do sleep 1; done"
  - docker version
  - docker pull fhinkel/macaulay2
#  - docker run fhinkel/macaulay2 /bin/echo hello
#  - sleep 10
#  - docker run fhinkel/macaulay2 /bin/bash /usr/bin/M2 -e "exit 0;"
#  - sleep 10
#  - docker run fhinkel/macaulay2 /bin/bash -c "echo \"exit 0;\" | M2 "
#  - sleep 10
#  - docker run fhinkel/macaulay2 /bin/bash -c "echo \"exit 0;\" | M2 "
#  - docker run fhinkel/macaulay2 /bin/bash -c "echo \"exit 0;\" | M2 "
#  - docker run fhinkel/macaulay2 /bin/bash -c "echo \"exit 0;\" | M2 "
#  - sleep 10
#  - docker ps -a
#  - sleep 10
#  - docker ps -a
#  - sleep 10
#  - docker ps -a
#  - sleep 10

script:
  - npm test


language: node_js
node_js:
 - "0.12"
 - "iojs"

Use TravisCI for npm test not crazy Docker tests
Use TravisCI for npm test not crazy Docker tests
