Permalink
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (40 sloc) 1.68 KB
image: Visual Studio 2017
environment:
nodejs_version: "6"
platform:
- x64
configuration:
- Release
matrix:
allow_failures:
- platform: x64
configuration: Release
cache:
- '%UserProfile%\.m2'
install:
# these need to have a line in between because of Windows line endings
- ps: >-
New-Item c:\scripts -type directory
$env:Path += ";C:\scripts"
Invoke-WebRequest -Uri https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein.bat -OutFile "C:\scripts\lein.bat"
lein self-install
lein version
- ps: Install-Product node $env:nodejs_version x64
- ps: wget 'http://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central/jsshell-win64.zip' -OutFile "$pwd\jsshell.zip"
- ps: 7z x "-o$pwd\jsshell" jsshell.zip -r
- ps: wget 'https://aka.ms/chakracore/cc_windows_all_1_8_1' -OutFile "$pwd\chakra-core.zip"
- ps: 7z x "-o$pwd\chakra-core" chakra-core.zip -r
- ps: .\script\bootstrap.ps1
- ps: "[Console]::OutputEncoding = [Text.UTF8Encoding]::UTF8"
- ps: $env:SPIDERMONKEY_HOME = "$pwd/jsshell"
- ps: $SPIDERMONKEY_HOME = "$pwd/jsshell"
- ps: $env:CHAKRACORE_HOME = "$pwd/chakra-core/x64_release"
- ps: $CHAKRACORE_HOME = "$pwd/chakra-core/x64_release"
test_script:
- cmd: lein test
- cmd: powershell -noninteractive -noprofile -command .\script\test.ps1 > test-out.txt
- cmd: type test-out.txt
# Since tests are currently only run in 2 JavaScript environments, look for exactly 2 counts of "0 failures, 0 errors."
- cmd: powershell -noninteractive -noprofile -command if (-not ((sls -Pattern '0 failures, 0 errors.' -SimpleMatch test-out.txt).count -eq 2)) { exit 1 }
# Don't actually build (MSBuild).
build: off