forked from uos3/obc-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
63 lines (56 loc) · 1.79 KB
/
Copy path.travis.yml
File metadata and controls
63 lines (56 loc) · 1.79 KB
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
## Travis CI Configuration file
# Use barebones Travis image
language: c
# Only grab latest git commit (no need for history)
git:
depth: 1
# Cache the compilers folder so we don't have to download and unpack it for every build
cache:
directories:
- $HOME/compilers/
# Download and unpack the latest GNU ARM Embedded Toolchain if it's not already there
# Also add the gcc/bin folder to $PATH
install:
- export GCC_DIR=$HOME/compilers/gcc-arm-none-eabi-8-2018-q4-major
- export GCC_ARCHIVE=$HOME/gcc-arm-none-eabi-8-2018-q4-major-linux.tar.bz2
- export GCC_URL=https://developer.arm.com/-/media/Files/downloads/gnu-rm/8-2018q4/gcc-arm-none-eabi-8-2018-q4-major-linux.tar.bz2
- if [ ! -e $GCC_DIR/bin/arm-none-eabi-gcc ]; then wget -nv $GCC_URL -O $GCC_ARCHIVE; tar xfj $GCC_ARCHIVE -C $HOME/compilers; fi
- export PATH=$PATH:$GCC_DIR/bin
# List of tests to run ( `./build -w $BOARD $MAIN` )
env:
- BOARD=uos3-proto MAIN=demo_blinky
- BOARD=uos3-proto MAIN=demo_uart
- BOARD=uos3-proto MAIN=demo_watchdog
- BOARD=uos3-proto MAIN=demo_fram
- BOARD=uos3-proto MAIN=demo_cw
- BOARD=uos3-proto MAIN=tx-test
- BOARD=uos3-proto MAIN=txrx-uart
# Command to run tests
script: ./build -w $BOARD $MAIN
# Additional jobs for Tests, and Doxygen documentation (only on master branch)
jobs:
include:
- stage: Module Tests
env:
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- lcov
script: ./test -w
- stage: Docs & Reports
if: branch = master
cache: skip
install: skip
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- doxygen
- gcc-7
- lcov
env:
script: tools/travis_docs.sh