-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
65 lines (57 loc) · 2.59 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
# Continuous Integration (CI) is the practice, in software
# engineering, of merging all developer working copies with a shared mainline
# several times a day < http://docs.platformio.org/en/latest/ci/index.html >
#
# Documentation:
#
# * Travis CI Embedded Builds with PlatformIO
# < https://docs.travis-ci.com/user/integration/platformio/ >
#
# * PlatformIO integration with Travis CI
# < http://docs.platformio.org/en/latest/ci/travis.html >
#
# * User Guide for `platformio ci` command
# < http://docs.platformio.org/en/latest/userguide/cmd_ci.html >
#
language: python
python:
- "2.7"
# Trusty gives us a modern GCC - important for C++ 11 support
dist: trusty
sudo: false
cache: pip
install:
- pip install -U platformio cpp-coveralls
- pip install -r src/sktool/requirements.txt
script:
# This builds all the targets compatible with travis
# we do not build sktooljs on travis at the moment
- platformio run -e host -e esp -e program-esp -e mfg -e sktool -e test
# Run the few unit tests (C code running on computer)
- make test
# Run the sktool-test.py script to validate that SignalK output is valid and
# matches what we expect.
- make validation
after_success:
- coveralls --exclude src/test --exclude /lib --exclude lib --exclude .piolibdeps
before_deploy:
- mv .pioenvs/host/firmware.elf ./kbox-firmware-$TRAVIS_TAG.elf
- mv .pioenvs/host/firmware.hex ./kbox-firmware-$TRAVIS_TAG.hex
- mv .pioenvs/esp/firmware.elf ./kbox-wifi-$TRAVIS_TAG.elf
- mv .pioenvs/esp/firmware.bin ./kbox-wifi-$TRAVIS_TAG.bin
- mv .pioenvs/sktool/program ./sktool-$TRAVIS_TAG
deploy:
provider: releases
api_key:
secure: QYe/1yIJZbSe5uZfoCROTT7s+1Yhe0lY1Ww8Ia//yYMQOYjvkjY+UAHaZ7FN+X3MBHPcMQCEPxeG4Hmy7fvTTV2nIRPlkheirZqSYt7HYr9WdbA/N29F92o/EMT5nQgqfmOf9u61Hx5K3JLyBnLIilajOpnHgARJXgg7w8lC2hE57k9oO0PWlFLGrNZRa9xfHeHnrOVL90TW3sk6/YR6J5u+cg2ZMwFPs8PPCxw/cBDowvQ3JrXrrQwRxHiAnrTscYlHoFEidsAAnrL99GROiRgFEGYQhddilztQ/h52AUy9+QDxAlVgxV/hi1+AUOGeeSK4GQPugrfH1+3kTR4a6T/XdTBoydTQSUYTHU4PcKJwzoaEwOVGVr4lg0Fl5ZCktcPLlY+TBHfBfitPAaNujWTA5P/pUv3Vwdq5pX4xYfhqFKIqZohlDOYEhk0xtAYvlYB4teaLCGkPNjtBi+8e11FghdaSZ/G6vXCkvGeOPrSIcp9g4pwnpwwhMMJISdpnpxm5cSLZJBOAJybsYUIPjVtjfvAQ6e0GpvcQsePDFBz6qSFSvYIpgEBE8gOcNotWHyiHjCkV4aAm+mBFmJ5Ndfr6XMSK+uARWG98FRrGNN4HZJl3h7cRrd2f1cOIm9N7SWLIXmMwEMYyIq+X++ZCKqOMhFnw3THhFxZ+U5ACOQM=
file:
- ./kbox-firmware-$TRAVIS_TAG.elf
- ./kbox-firmware-$TRAVIS_TAG.hex
- ./kbox-wifi-$TRAVIS_TAG.elf
- ./kbox-wifi-$TRAVIS_TAG.bin
- ./sktool-$TRAVIS_TAG
skip_cleanup: true
on:
repo: sarfata/kbox-firmware
branch: master
tags: true