Last active
August 29, 2015 14:01
-
-
Save flenter/f27aac5dc28c4a39bce0 to your computer and use it in GitHub Desktop.
wercker.yml with a npm-install step that installs a package globally
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
box: wercker/nodejs | |
# Build definition | |
build: | |
# The steps that will be executed on build | |
steps: | |
# A step that executes `npm install` command | |
- npm-install | |
# Install karma cli | |
- script: | |
name: install karma-cli globally | |
code: | | |
sudo npm install -g karma-cli | |
# A step that executes `npm test` command | |
- npm-test | |
# A custom script step, name value is used in the UI | |
# and the code value contains the command that get executed | |
- script: | |
name: echo nodejs information | |
code: | | |
echo "node version $(node -v) running" | |
echo "npm version $(npm -v) running" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment