forked from drowe67/codec2-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (51 loc) · 1.85 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
env:
global:
- GCC_BASE=gcc-arm-none-eabi-8-2018-q4-major
- GCC_SHORT=8-2018q4
sudo: required
language: generic
dist: xenial
addons:
apt:
packages: libc6-i386 octave-common octave gnuplot
sox p7zip-full python3-numpy octave-signal valgrind
cache:
directories:
- "$HOME/$GCC_BASE"
install:
- export GCC_DIR=$HOME/$GCC_BASE
- export GCC_ARCHIVE=$HOME/$GCC_BASE-linux.tar.bz2
- export GCC_URL=https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/$GCC_SHORT/$GCC_BASE-linux.tar.bz2
- if [ ! -e $GCC_DIR/bin/arm-none-eabi-g++ ]; then wget -q $GCC_URL -O $GCC_ARCHIVE;
tar xfj $GCC_ARCHIVE -C $HOME; fi
- export CODEC2DEV=${PWD}
- export MAKEFLAGS=-j2
- export BUILDSTD=${CODEC2DEV}/build_linux
- export BUILDSTM=${CODEC2DEV}/stm32/build_stm32
- export STDLIBDIR=$HOME/STM32F4xx_DSP_StdPeriph_Lib_V1.8.0
- if [ ! "$STDLIBURL" == "" ]; then pwd; wget -q $STDLIBURL; 7z x -p$STDLIBKEY -o$HOME
stdperiph_lib.zip; fi
- unset STDLIBURL STDLIBKEY # DO NOT TOUCH
script:
- mkdir -p $BUILDSTD
- cd $BUILDSTD
- cmake $CODEC2DEV
- make -j4
- CTEST_OUTPUT_ON_FAILURE=1 make -j4 all test
- mkdir -p $BUILDSTM
- cd $BUILDSTM
- if [ -e $STDLIBDIR ]; then (ln -s $STDLIBDIR . && cmake $CODEC2DEV/stm32 -DPERIPHLIBDIR="$STDLIBDIR"
-DCMAKE_TOOLCHAIN_FILE="$CODEC2DEV/stm32/cmake/STM32_Toolchain.cmake" -DARM_GCC_BIN:STRING="$GCC_DIR/bin/"
-DUT_PARAMS="--openocd" && make -j4 && ctest -V -E check_ram_limit) ; fi
- if [ -n "$UT_SSH_PARAMS" ]; then PATH="$GCC_DIR/bin/":${PATH} ctest -V -E ofdm_demod_ldpc_fade; fi
before_install:
# DO NOT TOUCH START
- if [ -n "$UT_SSH_PARAMS" ]; then openssl aes-256-cbc -K $KEY_K -iv $KEY_IV
-in stm32/unittest/lib/ut_travis.enc -out /tmp/ut_travis -d
&& eval "$(ssh-agent -s)"
&& chmod 600 /tmp/ut_travis
&& ssh-add /tmp/ut_travis >/dev/null 2>&1
&& rm -f /tmp/ut_travis;
fi
- unset KEY_K KEY_IV
# DO NOT TOUCH END