Fix node.js tests on Windows agents in Teamcity

This commit is contained in:
Alexey Andreev
2017-04-24 19:17:33 +03:00
parent 3002639fd7
commit 2c10f253c5
4 changed files with 27 additions and 22 deletions
+5 -4
View File
@@ -44,9 +44,11 @@
<move file="${dependencies}/${node.full.name}" tofile="${dependencies}/node"/>
<delete dir="${dependencies}/${node.full.name}"/>
<delete file="${node.tar.gz}"/>
<sequential if:set="isWindows">
<get src="${url.node.exe}" dest="${node.exe}" usetimestamp="true"/>
<delete file="${node.executable}"/>
</sequential>
</target>
@@ -122,9 +124,8 @@
<target name="run-nodejs-tests" description="Run JS backend tests in node.js" depends="download-nodejs-and-npm">
<npm command="install" dir="js/js.translator/testData" />
<exec executable="node_modules/mocha/bin/mocha" dir="js/js.translator/testData" failonerror="true">
<arg value="--reporter"/>
<arg value="mocha-teamcity-reporter"/>
</exec>
<npm command="run" dir="js/js.translator/testData">
<arg value="test"/>
</npm>
</target>
</project>