-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
66 lines (56 loc) · 1.83 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
# Original travis, not working on compiler
#language: cpp
#compiler: gcc
#
#addons:
# apt:
# packages: lcov
#
#script:
# - chmod +x ./build.sh ./get_code_cov.sh
# - ./build.sh
# - ./get_code_cov.sh
#
#after_success:
# Create lcov report
# - lcov --capture --directory . --output-file coverage.info
# - lcov --remove coverage.info '/usr/*' --output-file coverage.info # filter system-files
# - lcov --list coverage.info # debug info
# Uploading report to CodeCov
# - bash <(curl -s https://codecov.io/bash) -f coverage.info || echo "Codecov did not collect coverage reports" -t ${{ Secrets.CODECOV_TOKEN }}
# new travis using Arduino-CI
sudo: require
language: ruby
#addons:
# apt:
# packages: lcov
script:
# create example directory for each ino
- mkdir ./examples/dBuLevel
- cp ./examples/dBuLevel.ino ./examples/dBuLevel/dBuLevel.ino
# upgrade python
- /usr/bin/python -m pip install --upgrade pip
# install bundle
- bundle install
# ensure the Arduino installation -- creates the Library directory
- bundle exec ensure_arduino_installation.rb
# additional library
- git clone https://github.com/johnrickman/LiquidCrystal_I2C.git
- mv LiquidCrystal_I2C $(bundle exec arduino_library_location.rb)
# install gcovr
#- git clone https://github.com/gcovr/gcovr.git
#- pip install gcovr
#run CI
- bundle exec arduino_ci_remote.rb
after_success:
# run code coverage builder and send to codecov.io
#- gcovr -r ./examples/dBuLevel/
#- chmod +x ./get_code_cov.sh
#- ./get_code_cov.sh
#- gcovr -r .
# Create lcov report
# - lcov --capture --directory . --output-file coverage.info
# - lcov --remove coverage.info '/usr/*' --output-file coverage.info # filter system-files
# - lcov --list coverage.info # debug info
# Uploading report to CodeCov
- bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN