-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
96 lines (81 loc) · 5.38 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
sudo: required
services:
- docker
install:
- 'if [ ! -z "$DOCKER_HUB_EMAIL" ]; then docker login --email=$DOCKER_HUB_EMAIL --username=$DOCKER_HUB_USERNAME --password=$DOCKER_HUB_PASSWORD; fi'
- wget https://github.com/spark/firmware-buildpack-builder/archive/master.tar.gz -O - | tar -xz -C ../ --strip-components 1
- ../bin/build-image
script:
- ../bin/run-tests
# - '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
after_success: ../bin/push-image
env:
# 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:
secure: VJ+tAeUzLkz4aMAshQ9ohXZb/1+DQ31kDpcZYDS5PZuXOujx57rzOBg4SKxB2awcmNS2JWlSMQRQtNUzfS15YNuLqgWVj57EQAy99QKsEvccOMELIwbpLtEyEInK5WrUk6vk9ymhk6MBT5+3JiQ4bAs5yvIxm+k8YCakV9QlnH4=