File: appveyor.yml

package info (click to toggle)
dfvfs 20190128-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 105,256 kB
  • sloc: python: 25,003; sh: 369; makefile: 30; vhdl: 25
file content (48 lines) | stat: -rw-r--r-- 2,466 bytes parent folder | download | duplicates (2)
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
environment:
  matrix:
  - TARGET: windows_python27
    MACHINE_TYPE: "x86"
    PYTHON: "C:\\Python27"
  - TARGET: windows_python27
    MACHINE_TYPE: "amd64"
    PYTHON: "C:\\Python27-x64"
  - TARGET: windows_python36
    MACHINE_TYPE: "x86"
    PYTHON: "C:\\Python36"
  - TARGET: windows_python36
    MACHINE_TYPE: "amd64"
    PYTHON: "C:\\Python36-x64"

install:
- cmd: '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x86 /release'
- ps: >-
    "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12";
    $SQLiteReleaseYear = "2018";
    $SQLiteVersion = "3250300";
    If ($env:MACHINE_TYPE -eq "x86") {
      $SQLitePlatform = "win32-x86";
    } Else {
      $SQLitePlatform = "win64-x64";
    }
    $Url = "https://www.sqlite.org/${SQLiteReleaseYear}/sqlite-dll-${SQLitePlatform}-${SQLiteVersion}.zip";
    $DownloadPath = "C:\Projects\sqlite-dll-${SQLitePlatform}-${SQLiteVersion}.zip";
    (new-object net.webclient).DownloadFile($Url, $DownloadPath);
    $Output = Invoke-Expression -Command "& 'C:\\Program Files\\7-Zip\\7z.exe' -y -oC:\\Projects\\ x $DownloadPath 2>&1";
    Copy-Item -Force C:\Projects\sqlite3.dll "$env:PYTHON\\DLLs\\";
- cmd: "%PYTHON%\\python.exe -m pip install --upgrade pip"
- cmd: "%PYTHON%\\python.exe -m pip install pywin32 WMI"
- cmd: "%PYTHON%\\python.exe %PYTHON%\\Scripts\\pywin32_postinstall.py -install"
- cmd: git clone https://github.com/log2timeline/l2tdevtools.git ..\l2tdevtools
- cmd: if [%TARGET%]==[windows_python27] (
    mkdir dependencies &&
    set PYTHONPATH=..\l2tdevtools &&
    "%PYTHON%\\python.exe" ..\l2tdevtools\tools\update.py --download-directory dependencies --machine-type %MACHINE_TYPE% --msi-targetdir "%PYTHON%" --track dev PyYAML dfdatetime dtfabric funcsigs libbde libewf libfsapfs libfsntfs libfvde libfwnt libqcow libsigscan libsmdev libsmraw libvhdi libvmdk libvshadow libvslvm mock pbr pycrypto pysqlite pytsk3 six )
- cmd: if [%TARGET%]==[windows_python36] (
    mkdir dependencies &&
    set PYTHONPATH=..\l2tdevtools &&
    "%PYTHON%\\python.exe" ..\l2tdevtools\tools\update.py --download-directory dependencies --machine-type %MACHINE_TYPE% --msi-targetdir "%PYTHON%" --track dev PyYAML dfdatetime dtfabric libbde libewf libfsapfs libfsntfs libfvde libfwnt libqcow libsigscan libsmdev libsmraw libvhdi libvmdk libvshadow libvslvm mock pbr pycrypto pytsk3 six )

build: off

test_script:
- cmd: "%PYTHON%\\python.exe run_tests.py"