Skip to content

Commit

Permalink
Add Windows Dockerfile build CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Jun 16, 2020
1 parent b469b66 commit d667cb7
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,34 @@ environment:
PYTHON: "C:\\Python38-x64"
PYTHON_VERSION: "3.8"
L2TBINARIES_TRACK: "dev"
- TARGET: dockerfile
MACHINE_TYPE: "amd64"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
CONTAINER_NAME: "log2timeline/plaso"

install:
- cmd: '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x86 /release'
- cmd: "%PYTHON%\\python.exe -m pip install -U pip setuptools wheel"
- 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%]==[unittests] (
"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x86 /release &&
"%PYTHON%\\python.exe" -m pip install -U pip setuptools wheel )
- cmd: if [%PYTHON_VERSION%]==[3.8] (
"%PYTHON%\\python.exe" -m pip install pywin32 WMI &&
"%PYTHON%\\python.exe" "%PYTHON%\\Scripts\\pywin32_postinstall.py" -install &&
git clone https://github.com/log2timeline/l2tdevtools.git ..\l2tdevtools &&
mkdir dependencies &&
set PYTHONPATH=..\l2tdevtools &&
"%PYTHON%\\python.exe" ..\l2tdevtools\tools\update.py --download-directory dependencies --machine-type %MACHINE_TYPE% --msi-targetdir "%PYTHON%" --track "%L2TBINARIES_TRACK%" PyYAML XlsxWriter artifacts bencode biplist certifi cffi chardet cryptography dateutil defusedxml dfdatetime dfvfs dfwinreg dtfabric elasticsearch-py fakeredis future idna libbde libesedb libevt libevtx libewf libfsapfs libfsntfs libfvde libfwnt libfwsi liblnk libluksde libmsiecf libolecf libqcow libregf libscca libsigscan libsmdev libsmraw libvhdi libvmdk libvshadow libvslvm lz4 mock pbr pefile psutil pyparsing pytsk3 pytz pyzmq redis requests six sortedcontainers urllib3 yara-python )
- cmd: if [%TARGET%]==[dockerfile] (
docker version &&
docker-switch-linux )

build: off
build_script:
- cmd: if [%TARGET%]==[dockerfile] (
cd config\docker &&
docker build --build-arg PPA_TRACK="dev" -f Dockerfile -t "%CONTAINER_NAME%" . )

test_script:
- cmd: if [%TARGET%]==[unittests] (
"%PYTHON%\\python.exe" run_tests.py )
- cmd: if [%TARGET%]==[dockerfile] (
docker run -v C:\projects\plaso:/data "%CONTAINER_NAME%" log2timeline --status_view linear /data/test.plaso /data/test_data &&
docker run -v C:\projects\plaso:/data "%CONTAINER_NAME%" psort --status_view linear -w /data/timeline.log /data/test.plaso )

0 comments on commit d667cb7

Please sign in to comment.