UNPKG

1.02 kBJavaScriptView Raw
1'use strict';
2
3var _require = require('mrm-core'),
4 yaml = _require.yaml;
5
6module.exports = function (config) {
7 // appveyor.yml
8 yaml('appveyor.yml'
9 // Overwrite
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