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
|
|
|
|
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
|
|
|
|
|
2017-07-05 01:17:39 +08:00
|
|
|
# Test on Linux and MacOS
|
2016-10-14 22:13:06 +08:00
|
|
|
matrix:
|
|
|
|
include:
|
2017-12-03 00:00:28 +08:00
|
|
|
- os: osx
|
2019-07-25 20:41:52 +08:00
|
|
|
osx_image: xcode11
|
2019-08-20 05:25:18 +08:00
|
|
|
env: MAKE_PARAMS='PLATFORM_EXTRAS='
|
|
|
|
- os: osx
|
|
|
|
osx_image: xcode11
|
|
|
|
env: MAKE_PARAMS='PLATFORM_EXTRAS=BTADDON'
|
|
|
|
- os: linux
|
|
|
|
dist: xenial
|
|
|
|
sudo: required
|
|
|
|
env: MAKE_PARAMS='PLATFORM_EXTRAS='
|
2017-06-09 20:43:20 +08:00
|
|
|
- os: linux
|
2019-07-17 20:50:59 +08:00
|
|
|
dist: xenial
|
2017-06-09 20:43:20 +08:00
|
|
|
sudo: required
|
2019-08-20 05:25:18 +08:00
|
|
|
env: MAKE_PARAMS='PLATFORM_EXTRAS=BTADDON'
|
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
|
|
|
|
homebrew:
|
2019-08-18 05:41:27 +08:00
|
|
|
packages:
|
|
|
|
- readline
|
|
|
|
- p7zip
|
|
|
|
- libusb-compat
|
|
|
|
- perl
|
|
|
|
- qt5
|
|
|
|
- wget
|
|
|
|
- RfidResearchGroup/proxmark3/arm-none-eabi-gcc
|
2019-07-25 20:41:52 +08:00
|
|
|
taps: RfidResearchGroup/proxmark3
|
2019-08-18 22:36:21 +08:00
|
|
|
|
2017-07-05 01:17:39 +08:00
|
|
|
install:
|
2019-08-22 18:30:01 +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-22 18:26:05 +08:00
|
|
|
|
|
|
|
make clean;
|
|
|
|
make all V=1 "$MAKE_PARAMS";
|
2017-07-05 01:17:39 +08:00
|
|
|
|
2019-08-19 05:35:14 +08:00
|
|
|
script:
|
2017-10-11 19:39:09 +08:00
|
|
|
## start and run a test script
|
2019-08-19 01:56:38 +08:00
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
2019-08-20 05:25:18 +08:00
|
|
|
./pm3test.sh;
|
2019-08-19 05:35:14 +08:00
|
|
|
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
2019-08-18 22:31:57 +08:00
|
|
|
./pm3test.sh;
|
2019-08-18 22:36:21 +08:00
|
|
|
fi
|