forked from platformio/platformio-core
Test windows builds on x86 & x64
This commit is contained in:
@ -1,12 +1,18 @@
|
|||||||
build: off
|
build: off
|
||||||
environment:
|
|
||||||
|
|
||||||
|
platform:
|
||||||
|
- x86
|
||||||
|
- x64
|
||||||
|
|
||||||
|
environment:
|
||||||
matrix:
|
matrix:
|
||||||
- TOXENV: "py27"
|
- TOXENV: "py27"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- cmd: git submodule update --init --recursive
|
- cmd: git submodule update --init --recursive
|
||||||
- cmd: SET PATH=%PATH%;C:\Python27\Scripts;C:\MinGW\bin
|
- cmd: SET PATH=C:\MinGW\bin;%PATH%
|
||||||
|
- if %PLATFORM% == x64 SET PATH=C:\Python27-x64;C:\Python27-x64\Scripts;%PATH%
|
||||||
|
- if %PLATFORM% == x86 SET PATH=C:\Python27;C:\Python27\Scripts;%PATH%
|
||||||
- cmd: pip install tox
|
- cmd: pip install tox
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
import json
|
import json
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
from platformio import util
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
@ -24,6 +25,10 @@ def main():
|
|||||||
for platform in platforms:
|
for platform in platforms:
|
||||||
if platform['forDesktop']:
|
if platform['forDesktop']:
|
||||||
continue
|
continue
|
||||||
|
# RISC-V GAP does not support Windows 86
|
||||||
|
if (util.get_systype() == "windows_x86"
|
||||||
|
and platform['name'] == "riscv_gap"):
|
||||||
|
continue
|
||||||
subprocess.check_call(
|
subprocess.check_call(
|
||||||
["platformio", "platform", "install", platform['repository']])
|
["platformio", "platform", "install", platform['repository']])
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user