1 | 'use strict';
|
2 |
|
3 | var _require = require('mrm-core'),
|
4 | yaml = _require.yaml;
|
5 |
|
6 | module.exports = function (config) {
|
7 |
|
8 | yaml('appveyor.yml'
|
9 |
|
10 | ).set({
|
11 | branches: {
|
12 | only: ['master']
|
13 | },
|
14 | init: ['git config --global core.autocrlf input'],
|
15 | environment: {
|
16 | matrix: [{
|
17 | nodejs_version: config.latestNode,
|
18 | webpack_version: config.webpackVersion,
|
19 | job_part: 'test'
|
20 | }, {
|
21 | nodejs_version: config.latestNodeLTS,
|
22 | webpack_version: config.webpackVersion,
|
23 | job_part: 'test'
|
24 | }, {
|
25 | nodejs_version: config.minNode,
|
26 | webpack_version: config.webpackVersion,
|
27 | job_part: 'test'
|
28 | }]
|
29 | },
|
30 | build: 'off',
|
31 | matrix: {
|
32 | fast_finish: true
|
33 | },
|
34 | install: ['ps: Install-Product node $env:nodejs_version x64', 'npm install'],
|
35 | before_test: ['cmd: npm install webpack@^%webpack_version%'],
|
36 | test_script: ['node --version', 'npm --version', 'cmd: npm run appveyor:%job_part%']
|
37 | }).save();
|
38 | }; |
\ | No newline at end of file |