language: node_js
node_js:
   - "7"
before_install:
  - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
  - sudo apt-get update -qq                            # run update before installing anything
  - sudo apt-get install python-software-properties -y # for the next command
  - sudo add-apt-repository ppa:haxe/releases -y       # add the ubuntu ppa that contains haxe
  - sudo apt-get update                                # pull info from ppa
  - sudo apt-get install haxe -y                       # install haxe (and neko)
  - npm install -g grunt-cli
  - mkdir ~/haxelib                                    # create a folder for installing haxelib
  - haxelib setup ~/haxelib
  - haxelib install promhx
  - haxelib install nodejs
install:
  - sudo apt-get install -qq g++-4.8
  - export CXX="g++-4.8"
  - npm install
