-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (66 loc) · 2.14 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
dist: trusty
sudo: required
language: generic
os:
- linux
- osx
# Only test direct pushes to master
#
branches:
only:
- master
before_install:
- cd $HOME
- git clone --recursive https://github.com/CapeLeidokos/Leidokos-Testing.git
- Leidokos-Testing/travis/before_install.sh
script:
- cd $HOME
- mkdir ktest
- cd ktest
- $HOME/Leidokos-Testing/travis/test_kaleidoscope_module.sh
#- echo "firmware 1 configure"
#- cat /Users/travis/ktest/firmware/1/build/leidokos-testing.configure.log.txt
#- echo "firmware 1 build"
#- cat /Users/travis/ktest/firmware/1/build/leidokos-testing.build.log.txt
jobs:
include:
- stage: build_API_documentation
if: (branch = master) AND (env(TRAVIS_PULL_REQUEST) != false)
os: linux
script:
# Generates and installs the Python API to gh_pages
- cd $HOME
- mkdir -p hardware/keyboardio
- git clone -b regression_testing --recursive https://github.com/CapeLeidokos/Arduino-Boards.git hardware/keyboardio/avr
- cd hardware/keyboardio/avr
- git submodule status
- cd libraries
- cp -a $TRAVIS_BUILD_DIR .
- cd $HOME
- mkdir api_doc_build
- cd api_doc_build
- cmake --version
- cmake
-DKALEIDOSCOPE_FIRMWARE_SKETCH=$HOME/hardware/keyboardio/avr/libraries/Model01-Firmware/Model01-Firmware.ino
-DLEIDOKOS_PYTHON_GENERATE_API_DOC=TRUE
-DBoost_PYTHON_LIBRARY_RELEASE=/usr/lib/x86_64-linux-gnu/libboost_python-py34.so
$HOME/hardware/keyboardio/avr/libraries/Leidokos-Python
- make
- make VERBOSE=1 doc
deploy:
provider: pages
skip_cleanup: true
# The following directory is interpreted relative to /home/travis/build/CapeLeidokos/Leidokos-Python
local_dir: ../../../api_doc_build/doc/kaleidoscope
github_token: $GITHUB_API_KEY
on:
branch: master
notifications:
email:
recipients:
on_failure: always
cache:
ccache: true
directories:
- $HOME/Library/Caches/Homebrew