dist: trusty
language: node_js
sudo: false

notifications:
  email:
    on_success: never
    on_failure: change

node_js:
  - node

before_install:
  - export CXX="g++-4.9" CC="gcc-4.9"
  - curl https://cmake.org/files/v3.6/cmake-3.6.3-Linux-x86_64.tar.gz | tar xz
  - export PATH=${PWD}/cmake-3.6.3-Linux-x86_64/bin:$PATH
  - script/install-emscripten.sh

script:
  - npm run standard
  - npm run build:browser
  - npm run test:browser
  - npm run test:node
  - npm run test:native

git:
  depth: 10

branches:
  only:
    - master

cache:
  directories:
    - emsdk_portable
    - $HOME/.emscripten_cache

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - gcc-4.9
    - g++-4.9

dist: trusty
language: node_js
sudo: false

notifications:
  email:
    on_success: never
    on_failure: change

node_js:
  - node

before_install:
  - export CXX="g++-6" CC="gcc-6"
  - curl https://cmake.org/files/v3.6/cmake-3.6.3-Linux-x86_64.tar.gz | tar xz
  - export PATH=${PWD}/cmake-3.6.3-Linux-x86_64/bin:$PATH
  - script/install-emscripten.sh

script:
  - npm run standard
  - npm run build:browser
  - npm run test:browser
  - npm run test:node
  - npm run test:native

git:
  depth: 10

branches:
  only:
    - master

cache:
  directories:
    - emsdk_portable
    - $HOME/.emscripten_cache

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - gcc-6
    - g++-6
    - libstdc++6-6-dbg

Use newer gcc on trusty
Use newer gcc on trusty
