File tree Expand file tree Collapse file tree 3 files changed +53
-2
lines changed
Expand file tree Collapse file tree 3 files changed +53
-2
lines changed Original file line number Diff line number Diff line change 11* .ospx
22tests.xml
3- coverage /*
3+ coverage /*
4+
5+ tests-reports /*
Original file line number Diff line number Diff line change 1+ version : 1.2.{build}
2+ pull_requests :
3+ do_not_increment_build_number : true
4+ max_jobs : 1
5+ init :
6+ - ps : Set-WinSystemLocale ru-RU
7+
8+ # environment:
9+ # oscript: C:\Program Files (x86)\OneScript\bin\oscript.exe
10+
11+ install :
12+ - cmd : >-
13+ @echo on
14+ # git submodule update --init --recursive
15+ set
16+ curl -o %temp%\oscript-setup.exe http://oscript.io/downloads/latest/exe
17+ %temp%\oscript-setup.exe /silent /log="%temp%\oscript-setup.log" /saveinf="%temp%\oscript-setup-settings.txt"
18+ set OSCRIPT=%ProgramFiles(x86)%\OneScript
19+ dir "%OSCRIPT%\bin"
20+ dir "%OSCRIPT%\lib"
21+ rem SET PATH=%CD%\engine\bin;%PATH%
22+ SET PATH=%OSCRIPT%\bin;%PATH%
23+ where oscript
24+ oscript -version
25+ chcp 65001
26+ opm install opm
27+
28+ opm install 1testrunner;
29+ opm install 1bdd;
30+ opm install coverage;
31+
32+ opm install;
33+ opm list;
34+ # to disable automatic builds
35+ build : off
36+ test_script :
37+ - cmd : >-
38+
39+ opm run coverage;
40+
41+ pushd %APPVEYOR_BUILD_FOLDER%
42+
43+ after_test :
44+ - ps : # upload results to AppVeyor
45+ - ps : Write-Host "Загружаю результаты тестов на CI"
46+ - ps : $wc = New-Object 'System.Net.WebClient'
47+ - ps : $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\tests-reports\tests.xml))
48+ artifacts :
49+ - path : tests-reports\tests.xml
Original file line number Diff line number Diff line change 77 Тестер = Новый Тестер;
88
99 ПутьКТестам = ОбъединитьПути(ТекущийСценарий().Каталог, ".." , "tests" );
10- ПутьКОтчетуJUnit = ОбъединитьПути(ТекущийСценарий().Каталог, ".." );
10+ ПутьКОтчетуJUnit = ОбъединитьПути(ТекущийСценарий().Каталог, ".." , "tests-reports" );
1111
1212 КаталогТестов = Новый Файл(ПутьКТестам);
1313 Если Не КаталогТестов.Существует() Тогда
You can’t perform that action at this time.
0 commit comments