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
|
|
|
|
2016-10-14 22:53:49 +08:00
|
|
|
#default linux build env is: Ubuntu 14.04 trusty
|
2017-07-05 01:17:39 +08:00
|
|
|
compiler: gcc
|
2016-10-14 22:53:49 +08:00
|
|
|
|
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-08 17:37:20 +08:00
|
|
|
# - os: osx
|
|
|
|
# osx_image: xcode7.3 # OS X 10.11
|
2018-02-03 06:44:53 +08:00
|
|
|
# - os: osx
|
|
|
|
# osx_image: xcode8.3 # OS X 10.12
|
2017-12-08 17:37:20 +08:00
|
|
|
# - os: osx
|
|
|
|
# osx_image: xcode9 # OS X 10.13
|
2017-12-03 00:00:28 +08:00
|
|
|
- os: osx
|
|
|
|
osx_image: xcode9.1 # OS X 10.13.1
|
2017-06-09 20:43:20 +08:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
2016-10-14 22:20:10 +08:00
|
|
|
|
2017-07-05 01:17:39 +08:00
|
|
|
before_install:
|
|
|
|
## Install ARM toolchain on Linux.
|
|
|
|
## add our homebrew tap for MacOS
|
|
|
|
## Note: all dependencies on MacOS should be resolved by the brew install command
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
|
|
sudo apt-get update -qq;
|
|
|
|
sudo apt-get install -y gcc-arm-none-eabi;
|
|
|
|
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
2017-10-11 19:39:09 +08:00
|
|
|
brew update;
|
2018-08-13 03:54:31 +08:00
|
|
|
brew tap RfidResearchGroup/proxmark3;
|
2017-07-05 01:17:39 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
install:
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
2017-12-03 00:00:28 +08:00
|
|
|
brew info proxmark3;
|
|
|
|
brew options proxmark3;
|
2017-07-05 01:17:39 +08:00
|
|
|
brew install --HEAD proxmark3;
|
|
|
|
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
|
|
make all;
|
|
|
|
fi
|
|
|
|
|
2016-01-09 05:30:36 +08:00
|
|
|
before_script:
|
2017-01-24 06:17:26 +08:00
|
|
|
|
2017-06-09 20:43:20 +08:00
|
|
|
script:
|
2017-10-11 19:39:09 +08:00
|
|
|
## start and run a test script
|
2017-09-18 03:50:20 +08:00
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
proxmark3 -h ;
|
|
|
|
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
|
|
./client/proxmark3 -h ;
|
|
|
|
fi
|