Skip to content

Instantly share code, notes, and snippets.

@mikemaccana
Created January 28, 2016 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikemaccana/6f3b9c004c0e5ed55d9f to your computer and use it in GitHub Desktop.
Save mikemaccana/6f3b9c004c0e5ed55d9f to your computer and use it in GitHub Desktop.
Node 4 LTS on CircleCI
machine:
node:
version: 4.2.2
# From for occasional ELIFECYCLE errors compiling microtime
# https://discuss.circleci.com/t/using-node-js-4-0-on-circleci/26
# Modified to use 'pre' rather than 'override' so 'npm install' runs
# See https://circleci.com/docs/configuration
dependencies:
pre:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && sudo apt-get update
- sudo apt-get install -y gcc-4.9 g++-4.9
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 10
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 10
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 20
# Circle uses npm v2 by default
- npm install -g npm@3.x.x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment