Skip to content

Instantly share code, notes, and snippets.

@mikemaccana
Last active July 11, 2017 13:58
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/b6a7be0351d769a9099f5fdbdc726b0c to your computer and use it in GitHub Desktop.
Save mikemaccana/b6a7be0351d769a9099f5fdbdc726b0c to your computer and use it in GitHub Desktop.
# See https://circleci.com/docs/2.0/configuration-reference (badly written)
# And https://circleci.com/docs/2.0/configuration-reference/#full-example (better)
version: 2
jobs:
build:
docker:
# Circle does not currently have a node 8 image
# https://circleci.com/docs/2.0/circleci-images/#nodejs
- image: circleci/node:latest
# Cannot be '~/' - see https://discuss.circleci.com/t/directory-tmp-you-are-trying-to-checkout-to-is-not-empty-and-not-git-repository/11370
working_directory: '~/certsimple'
branches:
only:
- master # list of branches to build
steps:
- checkout
# Remove when https://github.com/npm/npm/issues/16883 is fixed
- run: sudo npm install -g npm@4.6.1
- run: sudo npm install -g mocha
- run: node --version
- run: npm --version
- run: mocha --version
- run: pwd
# Needed to restore local modules deleted by npm 5
- run: git checkout -- ./node_modules
- run: npm install
- run: ./run-tests.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment