fix(travis): fully fixed versions and docs

This commit is contained in:
Rhys Arkins 2019-05-08 08:02:23 +02:00
parent 22a8572622
commit 81f04cadb5
3 changed files with 13 additions and 11 deletions

View file

@ -9,11 +9,12 @@ module.exports = {
// Start version numbers as integers for correct sorting // Start version numbers as integers for correct sorting
const policies = { const policies = {
all: [8, 10, 11, 12],
lts: [8, 10], lts: [8, 10],
active: [8, 10, 11, 12], active: [10, 12],
current: [12], lts_active: [10],
lts_active: [8, 10],
lts_latest: [10], lts_latest: [10],
current: [12],
}; };
async function getPackageUpdates(config) { async function getPackageUpdates(config) {

View file

@ -22,7 +22,7 @@ describe('lib/manager/node/package', () => {
expect(await node.getPackageUpdates(config)).toEqual([]); expect(await node.getPackageUpdates(config)).toEqual([]);
}); });
it('returns empty if matching', async () => { it('returns empty if matching', async () => {
config.currentValue = ['8', '10']; config.currentValue = ['10'];
config.supportPolicy = ['lts_active']; config.supportPolicy = ['lts_active'];
expect(await node.getPackageUpdates(config)).toEqual([]); expect(await node.getPackageUpdates(config)).toEqual([]);
}); });

View file

@ -33,12 +33,13 @@ Renovate supports a [`supportPolicy`](configuration-options/#supportpolicy) opti
**Default:** `lts` **Default:** `lts`
| supportPolicy | versions | description | | supportPolicy | versions | description |
| ------------- | -------- | --------------------------------------------------------- | | ------------- | ---------- | -------------------------------------------------------- |
| lts | 6,8,10 | All releases classified as LTS, including in maintenance | | all | 8,10,11,12 | All releases that have not passed their end date |
| active | 8,10,11 | All releases classified as active and not maintenance | | lts | 8,10 | All releases classified as LTS, including in maintenance |
| current | 11 | The latest Node.js classified as "current" | | active | 10,12 | All releases not in maintenance |
| lts_active | 8,10 | All releases classified as Active LTS and not maintenance | | lts_active | 10 | All releases both LTS and active |
| lts_latest | 10 | The latest LTS release | | lts_latest | 10 | The latest LTS release |
| current | 12 | The latest release from "all" |
The version numbers associated with each support policy will be updated as new versions of Node.js are released, moved to LTS or maintenance, etc. The version numbers associated with each support policy will be updated as new versions of Node.js are released, moved to LTS or maintenance, etc.