proxmark3/.travis.yml.old

65 lines
1.5 KiB
YAML
Raw Normal View History

# Travis-CI Build for RfidResearchGroup/Proxmark3
2016-01-09 05:14:22 +08:00
language: c
2019-07-17 20:50:59 +08:00
#default linux build env is: xenial
compiler: gcc
2020-04-17 05:56:32 +08:00
os:
- linux
- osx
dist: bionic
2020-04-17 05:56:32 +08:00
osx_image: xcode11
# 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
2019-07-25 20:41:52 +08:00
addons:
apt:
packages:
- gcc-arm-none-eabi
- libnewlib-dev
- 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:
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
install:
2020-04-17 05:56:32 +08:00
if ! arm-none-eabi-gcc -v; then
echo "arm-none-eabi-gcc [ERROR]";
travis_terminate 1;
fi
script:
2020-04-17 05:56:32 +08:00
- if [ "$TO_TEST" = "MAKEFILE" ]; then
make clean && make V=1 "$MAKE_PARAMS";
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 );
make client/check CHECKARGS="--clientbin ./client/build/proxmark3";
2020-04-17 05:56:32 +08:00
fi