mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-22 08:24:25 +01:00
windows-x64: Add CircleCI testing.
This commit is contained in:
parent
ffddb75231
commit
5035a9a8e7
@ -13,6 +13,7 @@ dependencies:
|
||||
- docker pull thewtex/cross-compiler-linux-ppc64le
|
||||
- docker pull thewtex/cross-compiler-linux-x64
|
||||
- docker pull thewtex/cross-compiler-linux-x86
|
||||
- docker pull thewtex/cross-compiler-windows-x64
|
||||
|
||||
test:
|
||||
override:
|
||||
@ -32,6 +33,9 @@ test:
|
||||
- docker run --rm -v ~/cross-compilers/test/:/usr/src/test:ro thewtex/cross-compiler-linux-x64 python /usr/src/test/run.py
|
||||
- make linux-x86
|
||||
- docker run --rm -v ~/cross-compilers/test/:/usr/src/test:ro thewtex/cross-compiler-linux-x86 python /usr/src/test/run.py
|
||||
- make windows-x64:
|
||||
timeout: 3000
|
||||
- docker run --rm -v ~/cross-compilers/test/:/usr/src/test:ro thewtex/cross-compiler-windows-x64 python /usr/src/test/run.py --emulator /usr/bin/wine --exe-suffix ".exe"
|
||||
|
||||
deployment:
|
||||
hub:
|
||||
@ -46,3 +50,4 @@ deployment:
|
||||
- docker push thewtex/cross-compiler-linux-ppc64le
|
||||
- docker push thewtex/cross-compiler-linux-x64
|
||||
- docker push thewtex/cross-compiler-linux-x86
|
||||
- docker push thewtex/cross-compiler-windows-x64
|
||||
|
@ -14,7 +14,7 @@ import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
|
||||
def test_none_build_system(build_dir, language, source, linker_flags):
|
||||
def test_none_build_system(build_dir, language, source, linker_flags, exe_suffix):
|
||||
build_cmd = list()
|
||||
if language == 'C':
|
||||
compiler = os.getenv('CC', 'cc')
|
||||
@ -28,6 +28,9 @@ def test_none_build_system(build_dir, language, source, linker_flags):
|
||||
build_cmd.extend(linker_flags)
|
||||
build_cmd.append(source)
|
||||
|
||||
build_cmd.append('-o')
|
||||
build_cmd.append('a.out' + exe_suffix)
|
||||
|
||||
print('Building ' + source + ' by calling ' + compiler + '...')
|
||||
print(' '.join(build_cmd))
|
||||
sys.stdout.flush()
|
||||
@ -80,7 +83,8 @@ def test_source(source, language, build_system, emulator, linker_flags,
|
||||
os.chdir(build_dir)
|
||||
|
||||
if build_system == 'None':
|
||||
result += test_none_build_system(build_dir, language, source, linker_flags)
|
||||
result += test_none_build_system(build_dir, language, source,
|
||||
linker_flags, exe_suffix)
|
||||
elif build_system == 'CMake':
|
||||
result += test_cmake_build_system(build_dir, language, source, emulator,
|
||||
linker_flags, exe_suffix)
|
||||
|
Loading…
Reference in New Issue
Block a user