-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
55 lines (46 loc) · 1.41 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
################################################################################
# Title : .travis.yml
# Date created : 9 July 2020
# Author : Erriez"
#
# This is a Continuous Integration script for Travis CI:
# - Build Arduino examples with PlatformIO by using the library sources.
# - Build Doxygen HTML and PDF and push this automatically to gh-pages. The
# documentation is published at: https://<USER>.github.io/<REPOSITORY_NAME
#
#############################################################################
# Use Ubuntu 18.04 (Bionic Beaver)
dist: bionic
# PlatformIO requires deprecated Python 2.7
language: python
python: 2.7
# Cache platformIO directory
cache:
directories:
- "~/.platformio"
# Blacklist
branches:
except:
- gh-pages
# Install dependencies
addons:
apt:
packages:
- doxygen
- graphviz
# Install Python PlatformIO
install:
- pip install -U platformio
- platformio update
# Build script
script:
- bash .auto-build.sh
# Push Doxygen html directory to Github gh-pages branch when building master
deploy:
provider: pages # Travis-CI - Github gh-pages
skip_cleanup: true # Do not cleanup before push
github_token: $GITHUB_TOKEN # Secure variable in Travis-CI project
keep_history: true
local_dir: html # Push Doxygen html directory
on:
branch: master # Only when pushing to master branch