language: node_js
node_js:
  - "5"
  - "4"
  - "3"
  - "2"
  - "1.8"
  - "1.0"
  - "0.12"
  - "0.10"
addons:
    apt:
        sources:
        - ubuntu-toolchain-r-test
        packages:
        - gcc-4.8
        - g++-4.8
        - libsnappy-dev
        - realpath
install:
    - if [ "$CC" = "gcc" ]; then export CC="gcc-4.8"; export CXX="g++-4.8"; fi
    - mkdir deps
    - git clone https://github.com/openvenues/libpostal
    - cd libpostal
    - ./bootstrap.sh
    - ./configure --datadir=$(pwd)/data --prefix=$(realpath $(pwd)/..) --bindir=$(realpath $(pwd))
    - make install
    - cd ..
    - export CXXFLAGS=-I$LDFLAGS:$(pwd)/deps/lib
    - export LDFLAGS=-L$(pwd)/deps/lib
    - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/deps/lib
    - npm install
script:
    - npm test
language: node_js
node_js:
  - "5"
  - "4"
  - "3"
  - "2"
  - "1.8"
  - "1.0"
  - "0.12"
  - "0.10"
addons:
    apt:
        sources:
        - ubuntu-toolchain-r-test
        packages:
        - gcc-4.8
        - g++-4.8
        - libsnappy-dev
        - realpath
install:
    - export CC="gcc-4.8"
    - export CXX="g++-4.8"
    - mkdir deps
    - git clone https://github.com/openvenues/libpostal
    - cd libpostal
    - ./bootstrap.sh
    - ./configure --datadir=$(pwd)/data --prefix=$(realpath $(pwd)/..) --bindir=$(realpath $(pwd))
    - make install
    - cd ..
    - export CXXFLAGS=-I$LDFLAGS:$(pwd)/deps/lib
    - export LDFLAGS=-L$(pwd)/deps/lib
    - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/deps/lib
    - npm install
script:
    - npm test
Use gcc-4.8 for libpostal C lib as well so compile doesn't take forever
[fix] Use gcc-4.8 for libpostal C lib as well so compile doesn't take forever
