-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (34 loc) · 879 Bytes
/
.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
language: python
python:
- '3.6'
sudo: false
cache:
directories:
- "~/.platformio"
# require the branch name to be master (note for PRs this is the base branch name)
if: commit_message !~ /^Deploy sanddorn.ArduinoWLANSwitch to github.com.*$/
install:
- pip install -U platformio
- pip install gcovr
- platformio update
script:
- platformio run
- platformio test -e coverage -v
- mkdir -p docs/coverage
- gcovr --html-details --exclude .pio --exclude test --output docs/coverage/coverage.html
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep_history: true
target_branch: master
allow_empty_commit: true
on:
branch: master
notifications:
slack:
on_error: always
on_failure: always
on_success: change
rooms:
- secure: $SLACK_TOKEN