Browse Source

Running tests on CI

Sebastien Ros 8 years ago
parent
commit
13242d394e
2 changed files with 16 additions and 3 deletions
  1. 9 3
      appveyor.yml
  2. 7 0
      global.json

+ 9 - 3
appveyor.yml

@@ -1,7 +1,13 @@
 init:
   - git config --global core.autocrlf true
-build_script:
-  - build.cmd --quiet verify
 clone_depth: 1
-test: off
+install:
+  - dotnet --version
+  - dotnet restore
+build_script:
+  - dotnet build .\Jint\project.json --configuration Release
+test_script:
+  - dotnet test .\Jint.Tests\project.json --configuration Release
+  - dotnet test .\Jint.Tests.CommonScripts\project.json --configuration Release
+  - dotnet test .\Jint.Tests.Ecma\project.json --configuration Release
 deploy: off

+ 7 - 0
global.json

@@ -0,0 +1,7 @@
+{
+  "sdk": {
+    "runtime": "coreclr",
+    "architecture": "x64",
+    "version": "1.0.0-preview2-1-003177"
+  }
+}