2018-08-13 03:54:31 +08:00
|
|
|
# Travis-CI Build for RfidResearchGroup/Proxmark3
|
2016-01-09 05:14:22 +08:00
|
|
|
language: c
|
2016-01-09 05:30:36 +08:00
|
|
|
|
2019-07-17 20:50:59 +08:00
|
|
|
#default linux build env is: xenial
|
2017-07-05 01:17:39 +08:00
|
|
|
compiler: gcc
|
2016-10-14 22:53:49 +08:00
|
|
|
|
2020-04-17 05:56:32 +08:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
2020-06-08 16:38:32 +08:00
|
|
|
dist: bionic
|
2020-04-17 05:56:32 +08:00
|
|
|
|
|
|
|
osx_image: xcode11
|
|
|
|
|
2019-08-18 05:41:27 +08:00
|
|
|
# move some env variables to homebrew env
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- HOMEBREW_TRAVIS_BRANCH=$TRAVIS_BRANCH
|
|
|
|
- HOMEBREW_TRAVIS_COMMIT=$TRAVIS_COMMIT
|
2020-04-17 05:56:32 +08:00
|
|
|
jobs:
|
|
|
|
- TO_TEST=MAKEFILE MAKE_PARAMS='PLATFORM_EXTRAS='
|
|
|
|
- TO_TEST=MAKEFILE MAKE_PARAMS='PLATFORM_EXTRAS=BTADDON'
|
|
|
|
- TO_TEST=CMAKE
|
2016-10-14 22:20:10 +08:00
|
|
|
|
2019-07-25 20:41:52 +08:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- gcc-arm-none-eabi
|
|
|
|
- libnewlib-dev
|
2020-04-29 07:41:22 +08:00
|
|
|
- libbluetooth-dev
|
2020-05-26 23:15:42 +08:00
|
|
|
- python3-dev
|
2020-06-07 23:43:39 +08:00
|
|
|
- libbz2-dev
|
2019-07-25 20:41:52 +08:00
|
|
|
homebrew:
|
2019-08-18 05:41:27 +08:00
|
|
|
packages:
|
|
|
|
- readline
|
|
|
|
- qt5
|
|
|
|
- RfidResearchGroup/proxmark3/arm-none-eabi-gcc
|
2019-07-25 20:41:52 +08:00
|
|
|
taps: RfidResearchGroup/proxmark3
|
2020-02-22 00:07:14 +08:00
|
|
|
# update trick to fix https://travis-ci.community/t/macos-build-fails-because-of-homebrew-bundle-unknown-command/7296/14
|
|
|
|
update: true
|
2019-08-18 22:36:21 +08:00
|
|
|
|
2020-02-22 05:15:35 +08:00
|
|
|
before_install:
|
|
|
|
# bug?
|
|
|
|
# homebrew update replaced python2.7 by python3.7 but
|
|
|
|
# python3 link failed while python@2 still present, so let's do it again:
|
|
|
|
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
|
|
|
|
brew link --overwrite python;
|
|
|
|
fi
|
|
|
|
|
2017-07-05 01:17:39 +08:00
|
|
|
install:
|
2020-04-17 05:56:32 +08:00
|
|
|
if ! arm-none-eabi-gcc -v; then
|
2019-08-22 18:26:05 +08:00
|
|
|
echo "arm-none-eabi-gcc [ERROR]";
|
|
|
|
travis_terminate 1;
|
2017-07-05 01:17:39 +08:00
|
|
|
fi
|
|
|
|
|
2019-08-19 05:35:14 +08:00
|
|
|
script:
|
2020-04-17 05:56:32 +08:00
|
|
|
- if [ "$TO_TEST" = "MAKEFILE" ]; then
|
|
|
|
make clean && make V=1 "$MAKE_PARAMS";
|
2020-05-22 23:47:30 +08:00
|
|
|
make check;
|
2020-04-17 05:56:32 +08:00
|
|
|
fi
|
|
|
|
- if [ "$TO_TEST" = "CMAKE" ]; then
|
|
|
|
mkdir -p client/build && ( cd client/build && cmake .. && make VERBOSE=1 );
|
2020-05-22 23:47:30 +08:00
|
|
|
make client/check CHECKARGS="--clientbin ./client/build/proxmark3";
|
2020-04-17 05:56:32 +08:00
|
|
|
fi
|