Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Adds appveyor build file #55

Merged
merged 5 commits into from
Jun 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions src/tasks/appveyor.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
const { yaml } = require('mrm-core');

module.exports = (config) => {
// appveyor.yml
yaml('appveyor.yml')
// Overwrite
.set({
branches: {
only: [
'master',
],
},
init: [
'git config --global core.autocrlf input',
],
environment: {
matrix: [
{
nodejs_version: config.latestNode,
webpack_version: config.webpackVersion,
job_part: 'test',
},
{
nodejs_version: config.latestNodeLTS,
webpack_version: config.webpackVersion,
job_part: 'test',
},
{
nodejs_version: config.minNode,
webpack_version: config.webpackVersion,
job_part: 'test',
},
],
},
build: 'off',
matrix: {
fast_finish: true,
},
install: [
'ps: Install-Product node $env:nodejs_version x64',
'npm install',
],
before_test: [
'cmd: npm install webpack@^%webpack_version%',
],
test_script: [
'node --version',
'npm --version',
'cmd: npm run appveyor:%job_part%',
],
})
.save()
;
};
1 change: 1 addition & 0 deletions src/tasks/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module.exports = (config) => {
},
scripts: {
start: 'npm run build -- -w',
'appveyor:test': 'npm run test',
build: "cross-env NODE_ENV=production babel src -d dist --ignore 'src/**/*.test.js'",
clean: 'del-cli dist',
lint: 'eslint --cache src test',
Expand Down