proxmark3/.travis.yml

71 lines
1.6 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
# move some env variables to homebrew env
env:
global:
- HOMEBREW_TRAVIS_BRANCH=$TRAVIS_BRANCH
- HOMEBREW_TRAVIS_COMMIT=$TRAVIS_COMMIT
# Test on Linux and MacOS
matrix:
include:
- 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'
2019-07-25 20:41:52 +08:00
addons:
apt:
packages:
- gcc-arm-none-eabi
- libnewlib-dev
2019-12-22 18:29:06 +08:00
- libsndfile1-dev
2019-07-25 20:41:52 +08:00
homebrew:
packages:
- readline
2019-12-22 18:29:06 +08:00
- libsndfile
- 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:
2019-08-22 18:30:01 +08:00
if ! arm-none-eabi-gcc -v; then
echo "arm-none-eabi-gcc [ERROR]";
travis_terminate 1;
fi
make clean;
make all V=1 "$MAKE_PARAMS";
script:
## start and run a test script
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
2019-08-20 05:25:18 +08:00
./pm3test.sh;
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