forked from greatscottgadgets/greatfet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
94 lines (85 loc) · 2.39 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
language: python
matrix:
include:
- os: linux
cache: apt
dist: xenial
python: "2.7"
- os: linux
cache: apt
dist: xenial
python: "3.6"
- os: osx
# "Python builds are not available on the macOS environment."
# So we tell Travis it's C and run python commands
language: c
env:
global:
- BUILD_NAME="GreatFET-`date --iso-8601`-$TRAVIS_OS_NAME-$TRAVIS_COMMIT"
- ARTEFACT_BASE=$TRAVIS_BUILD_DIR/artefacts/
- ARTEFACT_PATH=$ARTEFACT_BASE/$BUILD_NAME
addons:
apt:
packages:
- python-usb
- python-setuptools
- dfu-util
- gcc-arm-none-eabi
- libnewlib-arm-none-eabi
- libstdc++-arm-none-eabi-newlib
# - python-yaml
homebrew:
taps: PX4/homebrew-px4
packages:
- gcc-arm-none-eabi
- dfu-util
before_install:
- pip install PyYAML
before_script:
- export CFLAGS="-Wall -Wextra"
- export PYTHONPATH="/home/travis/.local/lib/python3.6/site-packages/:/home/travis/.local/lib/python2.7/site-packages/"
# - export CFLAGS="-Wall -Wextra -Werror"
script:
# Host code
- python -V
- pushd libgreat/host/
- python setup.py build
- sudo $(which python) setup.py install
- popd
- pushd host/
- python setup.py build
- sudo $(which python) setup.py install
- popd
# - greatfet_info
# Firmware
- mkdir -p $ARTEFACT_PATH/firmware-bin
- mkdir firmware/build-greatfet_one
- mkdir firmware/build-nxp_xplorer
- mkdir firmware/build-rad1o_badge
- cd firmware/libopencm3
- make
- cd ../build-greatfet_one
- cmake ..
- make
- cp greatfet_usb/greatfet_usb.bin $ARTEFACT_PATH/firmware-bin/greatfet_usb.bin
- cp greatfet_usb/greatfet_usb.dfu $ARTEFACT_PATH/firmware-bin/greatfet_usb.dfu
- cd ../build-nxp_xplorer
- cmake -DBOARD=NXP_XPLORER ..
- make
- cp greatfet_usb/greatfet_usb.bin $ARTEFACT_PATH/firmware-bin/nxp-xplorer_usb.bin
- cp greatfet_usb/greatfet_usb.dfu $ARTEFACT_PATH/firmware-bin/nxp-xplorer_usb.dfu
- cd ../build-rad1o_badge
- cmake -DBOARD=RAD1O_BADGE ..
# - make
# - cp greatfet_usb/greatfet_usb.bin $ARTEFACT_PATH/firmware-bin/rad1o_usb.bin
# - cp greatfet_usb/greatfet_usb.dfu $ARTEFACT_PATH/firmware-bin/rad1o_usb.dfu
deploy:
provider: pages
verbose: true
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
repo: greatscottgadgets/nightly-builds
local-dir: $ARTEFACT_BASE
on:
branch: master