-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
63 lines (58 loc) · 1.44 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
---
#if: tag IS present
language: c
arch: amd64
os: linux
dist: xenial
#cache:
# directories:
# - ~/arduino_ide
# - ~/.arduino15/packages/
branches:
only:
- /^v\d+(\.\d+)+(\.\d+)?(-\S*)?$/
git:
depth: false
quiet: true
submodules: false
addons:
apt:
sources:
- llvm-toolchain-trusty-5.0
- key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- clang-format-5.0
env:
global:
- ARDUINO_IDE_VERSION="1.8.13"
- PRETTYNAME="espMQTT"
- TRAVISBUILD="yes"
# Optional, will default to "$TRAVIS_BUILD_DIR/Doxyfile"
# - DOXYFILE: $TRAVIS_BUILD_DIR/Doxyfile
notifications:
email:
recipients:
- $EMAILADDRESS
on_success: always # default: change
on_failure: always # default: always
before_install:
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
- sudo iptables -P INPUT DROP
- sudo iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
- cd ~
- source <(curl -SLs https://raw.githubusercontent.com/adafruit/travis-ci-arduino/master/install.sh)
- curl -SLs https://raw.githubusercontent.com/adafruit/travis-ci-arduino/master/run-clang-format.py > run-clang-format.py
- mv ~/build/jeroenst/espMQTT ~/Arduino/
- cd ~/Arduino/espMQTT
- ./configure.sh
script:
- cd ~/Arduino/espMQTT
- ./build.sh
deploy:
cleanup: false
provider: releases
token: $GITHUBAPIKEY
file_glob: true
file: ./builds/$TRAVIS_TAG/*.bin
on:
tags: true