forked from lvgl/lv_platformio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
76 lines (75 loc) · 2.55 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
jobs:
include:
-
name: Ubuntu 18.04
dist: bionic
language: python
python:
- "3.6"
cache:
directories:
- "~/.platformio"
addons:
apt:
packages: [ "libsdl2-dev:i386", gcc-multilib, g++-multilib ]
install:
- pip install -U platformio
- platformio update
script:
# Test builds status
- platformio run -e native
- platformio run -e stm32f429_disco
# Tests not available now
#- platformio test -e native
-
name: macOS 10.14
os: osx
osx_image: xcode11.3
language: shell
cache:
directories:
- "~/.platformio"
before_install:
- HOMEBREW_NO_AUTO_UPDATE=1 brew install sdl2
install:
- sudo easy_install pip # TODO: remove after https://travis-ci.community/t/missed-pip-after-xcode-image-update/7802 fixed
- pip install --upgrade pip
- pip install -U platformio
- platformio update
script:
# Test builds status
- platformio run -e native
- platformio run -e stm32f429_disco
-
name: Windows
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell
before_install:
- choco install python --version 3.6.8
- python -m pip install --upgrade pip
- |-
[[ ! -f C:/tools/msys64/msys2_shell.cmd ]] && rm -rf C:/tools/msys64
choco uninstall -y mingw
choco upgrade --no-progress -y msys2
export msys2='cmd //C RefreshEnv.cmd '
export msys2+='& set MSYS=winsymlinks:nativestrict '
export msys2+='& C:\\tools\\msys64\\msys2_shell.cmd -defterm -no-start'
export mingw64="$msys2 -mingw64 -full-path -here -c "\"\$@"\" --"
export msys2+=" -msys2 -c "\"\$@"\" --"
$msys2 pacman --sync --noconfirm --needed mingw-w64-x86_64-toolchain mingw-w64-x86_64-SDL2
taskkill //IM gpg-agent.exe //F # https://travis-ci.community/t/4967
export MAKE=mingw32-make # so that Autotools can find it
env: PATH=/c/Python36:/c/Python36/Scripts:/C/tools/msys64/mingw64/bin:$PATH
before_cache:
- $msys2 pacman --sync --clean --noconfirm
cache:
directories:
- $HOME/AppData/Local/Temp/chocolatey
- /C/tools/msys64
install:
- pip install -U platformio
- platformio update
script:
# Test builds status (bare metal only)
- platformio run -e native
- platformio run -e stm32f429_disco