Update Node.js to the latest LTS version

This commit is contained in:
Kimmo Puputti 2018-04-03 13:38:20 +03:00
parent 228a4d716d
commit 2a41f5dfec
2 changed files with 17 additions and 27 deletions

View file

@ -2,42 +2,33 @@ version: 2
jobs:
build:
docker:
- image: node:6.11.5
environment:
YARN_VERSION: 1.2.1
- image: circleci/node:8.11
steps:
- checkout
- restore_cache:
key: yarn-cache
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ .Branch }}-{{ checksum "yarn.lock" }}
- yarn-packages-{{ .Branch }}
- yarn-packages-master
- yarn-packages-
- run:
name: set PATH
command: echo 'export PATH="${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"' >> $BASH_ENV
- run:
name: install yarn
command: |
if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then
echo "Downloading and installing Yarn"
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
else
echo "The correct version of Yarn is already installed"
fi
- run:
name: yarn
command: yarn
name: Install Dependencies
command: yarn install
- save_cache:
key: yarn-cache
name: Save Yarn Package Cache
key: yarn-packages-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
- ~/.yarn
- node_modules/
- run:
name: audit
name: Audit deps for vulnerabilities
command: yarn run audit
- run:
name: format-ci
name: Check code formatting
command: yarn run format-ci
- run:
name: build
name: Build client app
command: yarn run build
- run:
name: test
name: Run test suite
command: yarn run test-ci

View file

@ -78,7 +78,6 @@
"proseWrap": "always"
},
"engines": {
"node": "6.11.5",
"yarn": "^1.2.1"
"node": "8.11"
}
}