forked from natanaeljr/esp32-MPU-driver
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
74 lines (69 loc) · 1.82 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
67
68
69
70
71
72
73
74
sudo: false
language: cpp
# Environment variables
env:
global:
- PATH: $PATH:$TRAVIS_BUILD_DIR/esp/xtensa-esp32-elf/bin
- IDF_PATH: $TRAVIS_BUILD_DIR/esp/esp-idf
- GH_REPO_NAME: esp32-MPU-driver
- GH_REPO_REF: github.com/natanaeljr/esp32-MPU-driver.git
- DOXYFILE_PATH: docs/doxygen
- DOXYFILE: Doxyfile
- MAKEFLAGS: "-j2"
stages:
- test
- name: docs deploy
if: branch = dev
# Install dependencies
addons:
apt:
packages:
- bash
- libncurses-dev
- flex
- bison
- gperf
- python
- python-serial
# setup to run script
before_script:
- $TRAVIS_BUILD_DIR/tools/ci/setup_esp_idf.sh
- $TRAVIS_BUILD_DIR/tools/ci/setup_ext_libs.sh
jobs:
include:
- script: ./tools/ci/build.sh test/unit-test-app --protocols=I2C --chips=all
env:
- UNIT_TEST_I2C: 1
- script: ./tools/ci/build.sh test/unit-test-app --protocols=SPI --chips=all
env:
- UNIT_TEST_SPI: 1
- script: ./tools/ci/build.sh examples/mpu_real --protocols=all --chips=all
env:
- EXAMPLE_MPU_REAL: 1
- script: ./tools/ci/build.sh examples/mpu_i2c --protocols=I2C --chips=all
env:
- EXAMPLE_MPU_I2C: 1
- script: ./tools/ci/build.sh examples/mpu_spi --protocols=SPI --chips=all
env:
- EXAMPLE_MPU_SPI: 1
- stage: docs deploy
addons:
apt:
packages:
- bash
- doxygen
- doxygen-doc
- doxygen-latex
- doxygen-gui
- graphviz
before_script: skip
script: ./tools/ci/gen_doxygen_docs.sh
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
target-branch: gh-pages
local-dir: gh-pages
on:
branch: dev