From 12466c4ec52e5c41650c7c5378722eb70ccf1505 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 11 Apr 2018 08:51:54 -0400 Subject: [PATCH 1/8] add appveyor config file --- appveyor.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 000000000..3139b89f4 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,21 @@ +# Test against the latest version of this Node.js version +environment: + nodejs_version: "8" + +# Install scripts. (runs after repo cloning) +install: + # Get the latest stable version of Node.js or io.js + - ps: Install-Product node $env:nodejs_version + # install modules + - npm install + +# Post-install test scripts. +test_script: + # Output useful info for debugging. + - node --version + - npm --version + # run tests + - npm run lint + +# Don't actually build. +build: off From 6e235f7e1c54a4e1926b2faf90c52c0f6629baac Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 11 Apr 2018 09:00:08 -0400 Subject: [PATCH 2/8] complete appveyor.yml --- appveyor.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 3139b89f4..31f2505a4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -14,8 +14,10 @@ test_script: # Output useful info for debugging. - node --version - npm --version - # run tests - npm run lint + - npm run test + - npm run testdapp_1 + - npm run testdapp_2 # Don't actually build. build: off From 67bdcbb1c37cda8a77b6140ff4636e5df1633670 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 11 Apr 2018 09:12:24 -0400 Subject: [PATCH 3/8] put cmds between "s so it works on windows --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 93ee26e5a..c54c267da 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "scripts": { "lint": "./node_modules/.bin/eslint lib/", "test": "mocha test/ --no-timeouts", - "testdapp_1": "cd test_apps/test_app/ && npm install && ../../bin/embark test", - "testdapp_2": "cd test_apps/contracts_app/ && npm install && ../../bin/embark test", + "testdapp_1": "cd test_apps/test_app/ && npm install && \"../../bin/embark\" test", + "testdapp_2": "cd test_apps/contracts_app/ && npm install && \"../../bin/embark\" test", "fulltest": "npm run lint && npm run test && npm run testdapp_1 && npm run testdapp_2" }, "bin": { From 2ce86f859120b836a0452dd4b7e3c3b1738d0678 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 11 Apr 2018 09:17:43 -0400 Subject: [PATCH 4/8] use node cmd so it works on windows --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c54c267da..4f10fae6a 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "scripts": { "lint": "./node_modules/.bin/eslint lib/", "test": "mocha test/ --no-timeouts", - "testdapp_1": "cd test_apps/test_app/ && npm install && \"../../bin/embark\" test", - "testdapp_2": "cd test_apps/contracts_app/ && npm install && \"../../bin/embark\" test", + "testdapp_1": "cd test_apps/test_app/ && npm install && node ../../bin/embark test", + "testdapp_2": "cd test_apps/contracts_app/ && npm install && node ../../bin/embark test", "fulltest": "npm run lint && npm run test && npm run testdapp_1 && npm run testdapp_2" }, "bin": { From a46bdfd71ed260bb74de626c9b5f82051ad336f0 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 11 Apr 2018 10:41:03 -0400 Subject: [PATCH 5/8] update npm version to fix recursive npm install bug --- appveyor.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/appveyor.yml b/appveyor.yml index 31f2505a4..e60efad54 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -7,6 +7,7 @@ install: # Get the latest stable version of Node.js or io.js - ps: Install-Product node $env:nodejs_version # install modules + - npm install -g npm@5.7 - npm install # Post-install test scripts. From 8c43ba2772ccf3693f781a8ec8cd310399e6daa9 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 11 Apr 2018 11:01:58 -0400 Subject: [PATCH 6/8] npm5 windows issues workaround --- appveyor.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index e60efad54..c28471a8b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -17,6 +17,8 @@ test_script: - npm --version - npm run lint - npm run test + # tmp fix due to windows npm5 issue + - cd tests_apps/test_app/extensions/embark-service && npm install - npm run testdapp_1 - npm run testdapp_2 From 34b378cd5defc219b7c923f3a2b9e5be2f0722ea Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 11 Apr 2018 11:14:01 -0400 Subject: [PATCH 7/8] fix typo... --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index c28471a8b..095924a09 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -18,7 +18,7 @@ test_script: - npm run lint - npm run test # tmp fix due to windows npm5 issue - - cd tests_apps/test_app/extensions/embark-service && npm install + - cd test_apps/test_app/extensions/embark-service && npm install - npm run testdapp_1 - npm run testdapp_2 From dbb6b696496102d76d069d4eb00a3c8a7d3e3e6f Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 11 Apr 2018 11:25:53 -0400 Subject: [PATCH 8/8] add badge for appveyor --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6bb13b8a1..dec3eb079 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ [![npm](https://img.shields.io/npm/dm/embark.svg)](https://npmjs.com/package/embark) [![Gitter](https://img.shields.io/gitter/room/embark-framework/Lobby.svg)](https://gitter.im/embark-framework/Lobby) -[![Build -Status](https://travis-ci.org/embark-framework/embark.svg?branch=develop)](https://travis-ci.org/embark-framework/embark) +[![Build Status](https://travis-ci.org/embark-framework/embark.svg?branch=develop)](https://travis-ci.org/embark-framework/embark) +[![Build status](https://ci.appveyor.com/api/projects/status/nnq38x2hi3q11o44/branch/develop?svg=true)](https://ci.appveyor.com/project/iurimatias/embark/branch/develop) What is Embark ======