diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 000000000..ecf889453 --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,15 @@ +version: '{build}' +branches: + only: [master] +init: +- ps: Install-Product node 8 +install: +- cmd: npm -v +- cmd: node -v +- cmd: npm install -g yarn +- cmd: yarn +cache: +- node_modules +build: off +test_script: +- cmd: yarn test diff --git a/tests_integration/__tests__/plugin-extensions.js b/tests_integration/__tests__/plugin-extensions.js index aaf934b9c..e13d32746 100644 --- a/tests_integration/__tests__/plugin-extensions.js +++ b/tests_integration/__tests__/plugin-extensions.js @@ -1,7 +1,7 @@ "use strict"; const runPrettier = require("../runPrettier"); -const EOL = require("os").EOL; +const EOL = "\n"; describe("uses 'extensions' from languages to determine parser", () => { runPrettier("plugins/extensions", ["*.foo", "--plugin=./plugin"]).test({ diff --git a/tests_integration/__tests__/plugin-preprocess.js b/tests_integration/__tests__/plugin-preprocess.js index 7b2ab7709..ee6f97cb2 100644 --- a/tests_integration/__tests__/plugin-preprocess.js +++ b/tests_integration/__tests__/plugin-preprocess.js @@ -1,7 +1,7 @@ "use strict"; const runPrettier = require("../runPrettier"); -const EOL = require("os").EOL; +const EOL = "\n"; describe("parser preprocess function is used to reshape input text", () => { runPrettier("plugins/preprocess", ["*.foo", "--plugin=./plugin"]).test({ diff --git a/tests_integration/__tests__/plugin-resolution.js b/tests_integration/__tests__/plugin-resolution.js index 17613bc02..2e9a51d6f 100644 --- a/tests_integration/__tests__/plugin-resolution.js +++ b/tests_integration/__tests__/plugin-resolution.js @@ -1,7 +1,7 @@ "use strict"; const runPrettier = require("../runPrettier"); -const EOL = require("os").EOL; +const EOL = "\n"; describe("automatically loads 'prettier-plugin-*'", () => { runPrettier("plugins/automatic", ["file.txt", "--parser=foo"]).test({