mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 22:46:27 +00:00
fix(travis): fully fixed versions and docs
This commit is contained in:
parent
22a8572622
commit
81f04cadb5
3 changed files with 13 additions and 11 deletions
|
@ -9,11 +9,12 @@ module.exports = {
|
|||
|
||||
// Start version numbers as integers for correct sorting
|
||||
const policies = {
|
||||
all: [8, 10, 11, 12],
|
||||
lts: [8, 10],
|
||||
active: [8, 10, 11, 12],
|
||||
current: [12],
|
||||
lts_active: [8, 10],
|
||||
active: [10, 12],
|
||||
lts_active: [10],
|
||||
lts_latest: [10],
|
||||
current: [12],
|
||||
};
|
||||
|
||||
async function getPackageUpdates(config) {
|
||||
|
|
|
@ -22,7 +22,7 @@ describe('lib/manager/node/package', () => {
|
|||
expect(await node.getPackageUpdates(config)).toEqual([]);
|
||||
});
|
||||
it('returns empty if matching', async () => {
|
||||
config.currentValue = ['8', '10'];
|
||||
config.currentValue = ['10'];
|
||||
config.supportPolicy = ['lts_active'];
|
||||
expect(await node.getPackageUpdates(config)).toEqual([]);
|
||||
});
|
||||
|
|
|
@ -32,13 +32,14 @@ Renovate supports a [`supportPolicy`](configuration-options/#supportpolicy) opti
|
|||
|
||||
**Default:** `lts`
|
||||
|
||||
| supportPolicy | versions | description |
|
||||
| ------------- | -------- | --------------------------------------------------------- |
|
||||
| lts | 6,8,10 | All releases classified as LTS, including in maintenance |
|
||||
| active | 8,10,11 | All releases classified as active and not maintenance |
|
||||
| current | 11 | The latest Node.js classified as "current" |
|
||||
| lts_active | 8,10 | All releases classified as Active LTS and not maintenance |
|
||||
| lts_latest | 10 | The latest LTS release |
|
||||
| supportPolicy | versions | description |
|
||||
| ------------- | ---------- | -------------------------------------------------------- |
|
||||
| all | 8,10,11,12 | All releases that have not passed their end date |
|
||||
| lts | 8,10 | All releases classified as LTS, including in maintenance |
|
||||
| active | 10,12 | All releases not in maintenance |
|
||||
| lts_active | 10 | All releases both LTS and active |
|
||||
| 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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue