Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 3 additions & 26 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ jobs:
build:
working_directory: ~/Clever/async-ext
docker:
- image: circleci/node:6.14.3-stretch
- image: circleci/node:10-stretch
environment:
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
Expand All @@ -16,29 +16,6 @@ jobs:
- run:
command: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
name: Set up CircleCI artifacts directories
- run:
command: |-
# download and install nvm
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
# add NVM_DIR env var to BASH_ENV file (to load for later steps)
echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV
# add NVM_DIR env var for this run command
export NVM_DIR="$HOME/.nvm"
# run nvm's script to load it for this run command
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# install and use node 0.10 for the rest of this run command
nvm install 0.10
npm install
name: npm install with node 0.10
- run:
command: |-
# grab the NVM_DIR env var saved in a previous run command
source $BASH_ENV
# run nvm's script to load nvm for this run command
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# ensure we're using 0.10 for the rest of this run command
nvm use 0.10
# actually do test step
npm test
name: npm test
- run: npm install
- run: npm test
- run: if [ "${CIRCLE_BRANCH}" == "master" ]; then $HOME/ci-scripts/circleci/npm-publish $NPM_TOKEN .; fi;