forked from fancycode/MemoryModule
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (35 loc) · 1.21 KB
/
.travis.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
sudo: false
env:
- PLATFORM=x86_64 WINE=wine64 UNICODE= CMAKE=
- PLATFORM=i686 WINE=wine UNICODE= CMAKE=
- PLATFORM=x86_64 WINE=wine64 UNICODE=1 CMAKE=
- PLATFORM=i686 WINE=wine UNICODE=1 CMAKE=
- PLATFORM=x86_64 WINE=wine64 UNICODE= CMAKE=1
- PLATFORM=i686 WINE=wine UNICODE= CMAKE=1
- PLATFORM=x86_64 WINE=wine64 UNICODE=1 CMAKE=1
- PLATFORM=i686 WINE=wine UNICODE=1 CMAKE=1
language: cpp
cache:
- apt
- ccache
addons:
apt:
packages:
- binutils-mingw-w64-i686
- binutils-mingw-w64-x86-64
- cmake
- mingw-w64-dev
- g++-mingw-w64-i686
- g++-mingw-w64-x86-64
- gcc-mingw-w64-i686
- gcc-mingw-w64-x86-64
- wine
before_script:
- if [ ! -z "$CMAKE" ]; then cmake -DPLATFORM=$PLATFORM -D UNICODE=$UNICODE -H. -B.; fi
script:
- if [ -z "$CMAKE" ]; then make PLATFORM=$PLATFORM UNICODE=$UNICODE; fi
- if [ -z "$CMAKE" ]; then make test PLATFORM=$PLATFORM UNICODE=$UNICODE; fi
- if [ ! -z "$CMAKE" ]; then cmake --build .; fi
- cd example/DllLoader
- WINEPREFIX=`pwd`/$WINE WINEPATH=/usr/lib/gcc/$PLATFORM-w64-mingw32/4.6/ $WINE ./DllLoader.exe
- WINEPREFIX=`pwd`/$WINE WINEPATH=/usr/lib/gcc/$PLATFORM-w64-mingw32/4.6/ $WINE ./DllLoaderLoader.exe