about summary refs log tree commit diff stats
path: root/.appveyor.yml
blob: 2d6731939f1a492c4d1c8940da9b4c9fcb2df24a (plain) (blame)
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
version: 1.{build}

configuration:
  - Release

clone_folder: c:\projects\miasm

environment:
  matrix:
    - platform: Win32
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
      PLATFORM_TOOLSET: v141
      PYTHON: c:\Python38
      PYTHON_VERSION: "3.8.x"

    - platform: x64
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
      PLATFORM_TOOLSET: v141
      PYTHON: c:\Python38-x64
      PYTHON_VERSION: "3.8.x"
      # on_finish:
      #  - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

install:
  - cmd: cd c:\projects\miasm
  - cmd: "%PYTHON%\\python.exe -m pip install -r requirements.txt"
  - cmd: "%PYTHON%\\python.exe -m pip install -r optional_requirements.txt"

build_script:
  - cmd: if "%platform%"=="Win32" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
  - cmd: if "%platform%"=="x64" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64
  - "%PYTHON%\\python.exe setup.py build"
  - "%PYTHON%\\python.exe setup.py install"

test_script:
  - cmd: cd c:\projects\miasm\test
  - "%PYTHON%\\python.exe -W error test_all.py"

after_test:
  - cmd: chdir
  - cmd: set plat
  - cmd: if "%platform%"=="Win32" 7z a -t7z ..\miasm.x86.release.7z c:\projects\miasm\build\*lib*
  - cmd: if "%platform%"=="X64" 7z a -t7z ..\miasm.x64.release.7z c:\projects\miasm\build\*lib*

artifacts:
  - path: miasm.*.7z