Skip to content

Commit 16d0feb

Browse files
committed
Добавлено тестиирование на appveyor
1 parent f7a6bc3 commit 16d0feb

File tree

3 files changed

+53
-2
lines changed

3 files changed

+53
-2
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
*.ospx
22
tests.xml
3-
coverage/*
3+
coverage/*
4+
5+
tests-reports/*

appveyor.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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

tasks/test.os

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Тестер = Новый Тестер;
88

99
ПутьКТестам = ОбъединитьПути(ТекущийСценарий().Каталог, "..", "tests");
10-
ПутьКОтчетуJUnit = ОбъединитьПути(ТекущийСценарий().Каталог, "..");
10+
ПутьКОтчетуJUnit = ОбъединитьПути(ТекущийСценарий().Каталог, "..", "tests-reports");
1111

1212
КаталогТестов = Новый Файл(ПутьКТестам);
1313
Если Не КаталогТестов.Существует() Тогда

0 commit comments

Comments
 (0)