forked from particle-iot/device-os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
129 lines (105 loc) · 6.06 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
sudo: required
# setting the language to bash speeds up builds compared to the default since there is no ruby installation
language: bash
cache:
ccache: true
directories:
$HOME/.ci/boost
services:
- docker
install:
- scripts/docker-hub-login
- scripts/fetch-buildpack
- buildpack/scripts/build-image
script:
- buildpack/scripts/run-tests-in-container
- buildpack/scripts/push-image
# - 'if [ ! -z "$DOCKER_HUB_EMAIL" ]; then docker login --email=$DOCKER_HUB_EMAIL --username=$DOCKER_HUB_USERNAME --password=$DOCKER_HUB_PASSWORD; fi'
# - wget https://api.github.com/repos/spark/firmware-buildpack-builder/tarball/feature/go_faster_stripes -O - | tar -xz -C ../ --strip-components 1
# - ../scripts/build-image
#script:
# - ../scripts/run-tests-in-container
# - 'if [ "${UNIT_TEST}" = "y" ]; then ./ci/unit_tests.sh; else cd $DIR && make -s clean all DEBUG_BUILD=$DEBUG_BUILD PLATFORM=$PLATFORM COMPILE_LTO=$COMPILE_LTO TEST=$TEST SPARK_CLOUD=$SPARK_CLOUD APP=$APP; fi'
# TODO - ./ci/integration_tests.sh
# TODO - ./ci/test_memory_available_with_real_core.sh
#after_success: ./ci/update-gh-pages.sh
git:
depth: 1
env:
matrix:
# Travis doesn't like to spin up more than 5 concurrent jobs at a time
- BUILD_PLATFORM="photon P1 unit-test"
- BUILD_PLATFORM="electron core gcc"
- BUILD_PLATFORM="xenon argon-som newhal"
- BUILD_PLATFORM="argon boron-som"
- BUILD_PLATFORM="boron xenon-som"
# matrix:
# - BUILD_PLATFORM=unit-test gcc
# - BUILD_PLATFORM=photon p1
# - BUILD_PLATFORM=core newhal
# - BUILD_PLATFORM=electron xenon
# matrix:
# - UNIT_TEST=y
# - DIR=main TEST=wiring/api PLATFORM=photon COMPILE_LTO=n
# - DIR=main TEST=wiring/api PLATFORM=core COMPILE_LTO=n SPARK_CLOUD=n
# - DIR=main TEST=wiring/api PLATFORM=P1 COMPILE_LTO=n
# - DIR=main TEST=wiring/no_fixture PLATFORM=photon COMPILE_LTO=n
# - DIR=main TEST=wiring/no_fixture PLATFORM=P1 COMPILE_LTO=n
# # expansion of matrix
# # dir=MAIN (monolithic)
# # DEBUG_BUILD=y
# # PLATFORM=core SPARK_CLOUD=y
# - DIR=main DEBUG_BUILD=y PLATFORM=core SPARK_CLOUD=y APP= COMPILE_LTO=y
# - DIR=main DEBUG_BUILD=y PLATFORM=core SPARK_CLOUD=y APP=tinker COMPILE_LTO=y
# - DIR=main DEBUG_BUILD=y PLATFORM=core SPARK_CLOUD=y APP=blank COMPILE_LTO=y
# # SPARK_CLOUD=n
# - DIR=main DEBUG_BUILD=y PLATFORM=core SPARK_CLOUD=n APP= COMPILE_LTO=y
# # PLATFORM=photon SPARK_CLOUD=y
# - DIR=main DEBUG_BUILD=y PLATFORM=photon SPARK_CLOUD=y APP= COMPILE_LTO=n
# - DIR=main DEBUG_BUILD=y PLATFORM=photon SPARK_CLOUD=y APP=tinker COMPILE_LTO=n
# - DIR=main DEBUG_BUILD=y PLATFORM=photon SPARK_CLOUD=y APP=blank COMPILE_LTO=n
# # PLATFORM=P1 SPARK_CLOUD=y
# - DIR=main DEBUG_BUILD=y PLATFORM=P1 SPARK_CLOUD=y APP= COMPILE_LTO=n
# - DIR=main DEBUG_BUILD=y PLATFORM=P1 SPARK_CLOUD=y APP=tinker COMPILE_LTO=n
# - DIR=main DEBUG_BUILD=y PLATFORM=P1 SPARK_CLOUD=y APP=blank COMPILE_LTO=n
# # PLATFORM=electron SPARK_CLOUD=y
# - DIR=main DEBUG_BUILD=y PLATFORM=electron SPARK_CLOUD=y APP= COMPILE_LTO=n
# - DIR=main DEBUG_BUILD=y PLATFORM=electron SPARK_CLOUD=y APP=tinker COMPILE_LTO=n
# - DIR=main DEBUG_BUILD=y PLATFORM=electron SPARK_CLOUD=y APP=blank COMPILE_LTO=n
# # DEBUG_BUILD=n
# # PLATFORM=core SPARK_CLOUD=y
# - DIR=main DEBUG_BUILD=n PLATFORM=core SPARK_CLOUD=y APP= COMPILE_LTO=y
# - DIR=main DEBUG_BUILD=n PLATFORM=core SPARK_CLOUD=y APP=tinker COMPILE_LTO=y
# - DIR=main DEBUG_BUILD=n PLATFORM=core SPARK_CLOUD=y APP=blank COMPILE_LTO=y
# # SPARK_CLOUD=n
# - DIR=main DEBUG_BUILD=n PLATFORM=core SPARK_CLOUD=n APP= COMPILE_LTO=y
# # PLATFORM=photon SPARK_CLOUD=y
# - DIR=main DEBUG_BUILD=n PLATFORM=photon SPARK_CLOUD=y APP= COMPILE_LTO=n
# - DIR=main DEBUG_BUILD=n PLATFORM=photon SPARK_CLOUD=y APP=tinker COMPILE_LTO=n
# - DIR=main DEBUG_BUILD=n PLATFORM=photon SPARK_CLOUD=y APP=blank COMPILE_LTO=n
# # PLATFORM=P1 SPARK_CLOUD=y
# - DIR=main DEBUG_BUILD=n PLATFORM=P1 SPARK_CLOUD=y APP= COMPILE_LTO=n
# - DIR=main DEBUG_BUILD=n PLATFORM=P1 SPARK_CLOUD=y APP=tinker COMPILE_LTO=n
# - DIR=main DEBUG_BUILD=n PLATFORM=P1 SPARK_CLOUD=y APP=blank COMPILE_LTO=n
# # PLATFORM=electron SPARK_CLOUD=y
# - DIR=main DEBUG_BUILD=n PLATFORM=electron SPARK_CLOUD=y APP= COMPILE_LTO=n
# - DIR=main DEBUG_BUILD=n PLATFORM=electron SPARK_CLOUD=y APP=tinker COMPILE_LTO=n
# - DIR=main DEBUG_BUILD=n PLATFORM=electron SPARK_CLOUD=y APP=blank COMPILE_LTO=n
# # DIR=modules (modular)
# # DEBUG_BUILD=y
# - DIR=modules DEBUG_BUILD=y PLATFORM=photon COMPILE_LTO=n
# - DIR=modules DEBUG_BUILD=y PLATFORM=P1 COMPILE_LTO=n
# # DEBUG_BUILD=n
# - DIR=modules DEBUG_BUILD=n PLATFORM=photon COMPILE_LTO=n
# - DIR=modules DEBUG_BUILD=n PLATFORM=P1 COMPILE_LTO=n
# # Photon minimal build
# - DIR=modules PLATFORM=photon COMPILE_LTO=n MINIMAL=y
global:
- DOCKER_IMAGE_NAME=particle/buildpack-particle-firmware
- secure: UM1+Ps1t21JfJaTFhuqkaY/U21j1Gfja6oSJTALcU0Y7zmo7TNyYMJwP+tbRfss7RBilWwUA8osr3sr6NXPREChojKpRQaRt52iD6wDfcxhsxGrpOU79cYO7FK1aQhCmhDGcnXahtxzbOGwS74jjTFW9U6TSveWa+EV1OgagLMc=
- secure: aJ+EUGgXIp8t0s/f3EEyiUjYXnzAlYW9+jukG240A2Wb/XnGp9Av/JE+wBnBeMv7eF+hxkODo99gDXPumV6uYQevIBtqiHWtAu7kyvCxUWXhSmag+Q89pCJO8QpUrcxra9UZ6i+zhFEfskBctBjlT9nMKoUsGSg4jMg6Kx71QsA=
- secure: Iq58mKqq5Nz4B6OEZu1nmnquhvlQncxT4T3f1x+M/0I6VW5xirMWFlpeke8QyyPOZlwNLDnB5QVjsR2UQspNIhMT4rCfDeCCr9AeinoMDmqPbzpmLLmtaUpz0uTZyJVx7+IRe9QtljPfbzlAxybmrx1HdCCw++F/+qhgFoGLi9o=
- secure: O8Zu2sWO63svmSTdOk+7Z7N2oUcg3N07WckMoy1m7AYmRZydX5hdVXlbagA06FCtpu1Kvvwc7QYB+1wpoxZYZnxt2mVetVsAcSpOz3c03LodM+yKaHm9luqLfQobuC7oyNdumpqMLsWiELM9rxEpIazYDYM2QI+lh7fTUTHnQ3s=
- secure: A83drTFobkGvgrPNwGwNS3ZSHX35iNELjH6W9h07pw/n1YSssBHxtLF8aVAEwfIF1VyUoHvQ4HYLNd+9RMyo162xxiWne+/4/gSFyUJNi11w3YX5bwodKPl7OwEO/YnJgHYk8YAAfdnZT4470Fpt6ytcOhEhMsB/IFeepMUiZZA=
notifications:
slack: s:uyDgDeY2Sric20NcE50P11QS