-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
55 lines (42 loc) · 1.3 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
# Travis.yml
# Shamelessly stolen from: https://github.com/rlogiacco/MicroDebug/blob/master/.travis.yml
# and from https://github.com/tzapu/WiFiManager/blob/master/.travis.yml via the blog post at:
# https://tzapu.com/automate-arduino-ide-esp8266-build-testing-travisci/
language: cpp
sudo: required
addons:
apt:
sources:
# - ubuntu-toolchain-r-test
packages:
# - gcc-4.8
# - g++-4.8
before_install:
# Setup Test Environment
# - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
# - sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-4.8 90
# Get travis-scripts
- git clone https://github.com/r89m/travis-scripts.git
- source $TRAVIS_BUILD_DIR/travis-scripts/arduino.sh
# Setup Arduino Environment
- setup_env
# Install coveralls
# - pip install --user cpp-coveralls
install:
# Check versions
# - g++ --version
# - gcov --version
# Install Libraries
- install_repo_as_library
script:
# Run tests
# - cd ${TRAVIS_BUILD_DIR}
# - make test
# Upload code coverage report
# - coveralls --exclude tests/ --exclude examples/ --gcov-options '\-lp'
# Check that examples compile
- build_examples
notifications:
email:
on_success: change
on_failure: change