sudo: required

services:
  - docker

compiler:
  - gcc

before_install:
  - docker build -t absalomedia/hhvm-dev .
  - docker run -t -i hhvm-dev /bin/bash
  - docker ps -a
  - docker info

install:
- mkdir ${TRAVIS_BUILD_DIR}/newrelic
- cd ${TRAVIS_BUILD_DIR}/newrelic
- wget https://download.newrelic.com/agent_sdk/nr_agent_sdk-v0.16.1.0-beta.x86_64.tar.gz
- tar -xzf nr_agent_sdk-*.tar.gz
- sudo cp nr_agent_sdk-*/include/* /usr/local/include/
- sudo cp nr_agent_sdk-*/lib/* /usr/local/lib/
- export CXX="g++-4.9"

script:
  - cd ${TRAVIS_BUILD_DIR}
  - hhvm --version
  - hphpize
  - cmake .
  - make
  - make install

notifications:
    on_success: never
    on_failure: never

os:
  - linux

sudo: required

services:
  - docker

compiler:
  - gcc

before_install:
  - docker pull -t absalomedia/hhvm-dev
  - docker docker run -d -p 127.0.0.1:80:4567 absalomedia/hhvm-dev /bin/sh
  - docker ps -a
  - docker info

install:
- mkdir ${TRAVIS_BUILD_DIR}/newrelic
- cd ${TRAVIS_BUILD_DIR}/newrelic
- wget https://download.newrelic.com/agent_sdk/nr_agent_sdk-v0.16.1.0-beta.x86_64.tar.gz
- tar -xzf nr_agent_sdk-*.tar.gz
- sudo cp nr_agent_sdk-*/include/* /usr/local/include/
- sudo cp nr_agent_sdk-*/lib/* /usr/local/lib/
- export CXX="g++-4.9"

script:
  - cd ${TRAVIS_BUILD_DIR}
  - hhvm --version
  - hphpize
  - cmake .
  - make
  - make install

notifications:
    on_success: never
    on_failure: never

os:
  - linux

Refactor docker in Travis. See if it works
Refactor docker in Travis. See if it works
