forked from online-judge-tools/oj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
44 lines (38 loc) · 1.15 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
build: false
environment:
matrix:
- PYTHON: C:\Python35
- PYTHON: C:\Python36-x64
- PYTHON: C:\Python36-x64
TEST_OJ_EXE: dist\oj.exe # for unit tests
install:
# Prepend newly installed Python to the PATH of this build (this cannot be
# done from inside the powershell script as it would require to restart
# the parent CMD process).
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- python --version
# Upgrade to the latest version of pip to avoid it displaying warnings
# about it being out of date.
- python -m pip install --upgrade pip
- pip install --upgrade setuptools
- pip install pyinstaller
- pip install -e .[dev,docs]
- pyinstaller --name oj --onefile onlinejudge\_implementation\main.py
test_script:
- ps: pytest -v $(dir tests/*.py | % {$_.FullName})
- dist\oj.exe --version
artifacts:
- path: dist\oj.exe
name: oj_exe
deploy:
release: $(APPVEYOR_REPO_TAG_NAME)
provider: GitHub
auth_token:
secure: z5/wB9Or6BhMxAJ2vh31xOtI2REiETaYMykjvsp1D9mqruhzCtlyeiGHPUxAEI0T
artifact: oj_exe
force_update: true
draft: false
on:
appveyor_repo_tag: true
branch: master
TEST_OJ_EXE: dist\oj.exe