mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-10 17:49:32 +08:00
54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
# Travis-CI Build for RfidResearchGroup/Proxmark3
|
|
language: c
|
|
|
|
#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
|
|
osx_image: xcode11
|
|
- os: linux
|
|
dist: xenial
|
|
sudo: required
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- gcc-arm-none-eabi
|
|
- libnewlib-dev
|
|
homebrew:
|
|
packages:
|
|
- readline
|
|
- p7zip
|
|
- libusb-compat
|
|
- perl
|
|
- qt5
|
|
- wget
|
|
- RfidResearchGroup/proxmark3/arm-none-eabi-gcc
|
|
taps: RfidResearchGroup/proxmark3
|
|
|
|
install:
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
brew info proxmark3;
|
|
brew options proxmark3;
|
|
brew install --HEAD proxmark3;
|
|
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
make clean;
|
|
make all;
|
|
fi
|
|
|
|
script:
|
|
## start and run a test script
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
proxmark3 -h ;
|
|
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
./pm3test.sh;
|
|
fi
|