mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00

- Using `npm test` and `npm run …` scripts defined in package.json now invokes the makefile and runs the test with the same shell that npm was invoked from. - The makefile can now be invoked directly - supporting utilities from locally installed npm packages are automatically discovered. - Invoking the makefile without a target errors out with a hint. - Shell-specific test targets are now named 'test-<shell>'. - Both 'test-<shell>' targets and the all-shells 'test' target now run all test suites by default. - On `make TAG=<new-version> release` there must be no uncommitted changes. '<new-version>' can now also be one of the following increment specifiers: 'patch', 'minor', 'major'. - It is ensure that <new-version>, if not an increment specifier, is a valid semver version number that is higher than the previous release's. - The previous release tag is now located with a pattern so as to exclude tags that aren't version numbers. - Switched from lightweight to annotated tags for releases.
42 lines
1.6 KiB
YAML
42 lines
1.6 KiB
YAML
language: c # defaults to ruby
|
|
install:
|
|
- sudo apt-get install ksh zsh -y
|
|
- '[ -z "$WITHOUT_CURL" ] || sudo apt-get remove curl -y'
|
|
before_script:
|
|
- '[ -n "$WITHOUT_CURL" ] || curl -o /tmp/urchin https://raw.githubusercontent.com/scraperwiki/urchin/master/urchin'
|
|
- '[ -z "$WITHOUT_CURL" ] || wget -O /tmp/urchin https://raw.githubusercontent.com/scraperwiki/urchin/master/urchin'
|
|
- chmod +x /tmp/urchin
|
|
script:
|
|
- NVM_DIR=$TRAVIS_BUILD_DIR make TEST_SUITE=$TEST_SUITE URCHIN=/tmp/urchin test-$SHELL
|
|
env:
|
|
- SHELL=sh TEST_SUITE=install_script
|
|
- SHELL=dash TEST_SUITE=install_script
|
|
- SHELL=bash TEST_SUITE=install_script
|
|
- SHELL=zsh TEST_SUITE=install_script
|
|
- SHELL=ksh TEST_SUITE=install_script
|
|
- SHELL=sh TEST_SUITE=fast
|
|
- SHELL=dash TEST_SUITE=fast
|
|
- SHELL=bash TEST_SUITE=fast
|
|
- SHELL=zsh TEST_SUITE=fast
|
|
- SHELL=ksh TEST_SUITE=fast
|
|
- SHELL=sh TEST_SUITE=slow
|
|
- SHELL=dash TEST_SUITE=slow
|
|
- SHELL=bash TEST_SUITE=slow
|
|
- SHELL=zsh TEST_SUITE=slow
|
|
- SHELL=ksh TEST_SUITE=slow
|
|
- SHELL=sh TEST_SUITE=sourcing
|
|
- SHELL=dash TEST_SUITE=sourcing
|
|
- SHELL=bash TEST_SUITE=sourcing
|
|
- SHELL=zsh TEST_SUITE=sourcing
|
|
- SHELL=ksh TEST_SUITE=sourcing
|
|
- SHELL=sh TEST_SUITE=installation
|
|
- SHELL=sh TEST_SUITE=installation WITHOUT_CURL=1
|
|
- SHELL=dash TEST_SUITE=installation
|
|
- SHELL=dash TEST_SUITE=installation WITHOUT_CURL=1
|
|
- SHELL=bash TEST_SUITE=installation
|
|
- SHELL=bash TEST_SUITE=installation WITHOUT_CURL=1
|
|
- SHELL=zsh TEST_SUITE=installation
|
|
- SHELL=zsh TEST_SUITE=installation WITHOUT_CURL=1
|
|
- SHELL=ksh TEST_SUITE=installation
|
|
- SHELL=ksh TEST_SUITE=installation WITHOUT_CURL=1
|