forked from openai/atari-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
55 lines (48 loc) · 1.67 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
45
46
47
48
49
50
51
52
53
54
55
environment:
global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script intepreter
# See: http://stackoverflow.com/a/13751649/163740
#? CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
## Build uses make, so we need MINGW.
MINGW_DIR: C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin
matrix:
#- PYTHON: "C:\\Python27"
#- PYTHON: "C:\\Python35"
- PYTHON: "C:\\Python36"
#- PYTHON: "C:\\Python27-x64"
#- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36-x64"
init:
#- cmd: set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- cmd: set PATH=%MINGW_DIR%;%PATH%
install:
# Upgrade to the latest version of pip to avoid it displaying warnings
# about it being out of date.
- "python -m pip install --upgrade pip"
- "%PYTHON%\\python.exe -m pip install wheel"
#build: off
build_script:
## Build the compiled extension
#?- "%CMD_IN_ENV% python setup.py build"
- "%PYTHON%\\python.exe setup.py build"
- "%PYTHON%\\python.exe setup.py install"
before_test:
- "%PYTHON%\\python.exe setup.py bdist_wheel"
- "cd dist"
- "%PYTHON%\\python.exe -m pip install --find-links=. atari-py"
- "%PYTHON%\\python.exe -m pip install gym"
test_script:
- "%PYTHON%\\python.exe -c \"import gym; env = gym.make('Enduro-v0'); env.reset(); [env.step(env.action_space.sample()) for i in range(1000)]\""
artifacts:
- path: dist\*.whl
name: Releases
deploy:
provider: GitHub
auth_token:
secure: "E3WF9dDhcvgIneWex9BnNEfaDbLLs6dA3nD232edUtQb5pPzL6vOjUYV0wPe5aKZ"
artifact: /.*\.whl/
draft: false
prerelease: false
on:
appveyor_repo_tag: true