Add info about using the CI repo on plugin test

This commit is contained in:
Marcos Ferreira 2018-10-24 19:20:13 -03:00 committed by GitHub
parent 65ce0db5e1
commit 5a2e69ca86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,7 +137,7 @@ Here is a sample `.travis.yml` file, customize it to your needs
```yaml ```yaml
language: c language: c
script: asdf plugin-test nodejs https://github.com/asdf-vm/asdf-nodejs.git 'node --version' script: asdf plugin-test nodejs $TRAVIS_BUILD_DIR 'node --version'
before_script: before_script:
- git clone https://github.com/asdf-vm/asdf.git asdf - git clone https://github.com/asdf-vm/asdf.git asdf
- . asdf/asdf.sh - . asdf/asdf.sh
@ -146,6 +146,14 @@ os:
- osx - osx
``` ```
Note:
When using another CI, you will need to check what variable maps to the repo path.
You also have the option to pass a relative path to `plugin-test`.
For example, if the test script is ran in the repo directory: `asdf plugin-test nodejs . 'node --version'`.
## GitHub API Rate Limiting ## GitHub API Rate Limiting
If your plugin's `list-all` depends on accessing the GitHub API, make sure you provide If your plugin's `list-all` depends on accessing the GitHub API, make sure you provide