2017-01-23 20:55:27 +01:00
|
|
|
# Travis-CI Build for IcemanFork/Proxmark3
|
2016-01-08 22:14:22 +01:00
|
|
|
language: c
|
2016-01-08 22:30:36 +01:00
|
|
|
|
2016-10-14 16:53:49 +02:00
|
|
|
#default linux build env is: Ubuntu 14.04 trusty
|
2017-07-04 19:17:39 +02:00
|
|
|
compiler: gcc
|
2016-10-14 16:53:49 +02:00
|
|
|
|
2017-07-04 19:17:39 +02:00
|
|
|
# Test on Linux and MacOS
|
2016-10-14 16:13:06 +02:00
|
|
|
matrix:
|
|
|
|
include:
|
2017-07-04 19:17:39 +02:00
|
|
|
- os: osx
|
|
|
|
osx_image: xcode7.3 # OS X 10.11
|
|
|
|
- os: osx
|
|
|
|
osx_image: xcode8.3 # OS X 10.12
|
2017-06-09 14:43:20 +02:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
2016-10-14 16:20:10 +02:00
|
|
|
|
2017-07-04 19:17:39 +02: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
|
|
|
|
brew tap iceman1001/proxmark3;
|
|
|
|
fi
|
|
|
|
|
|
|
|
install:
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
brew install --HEAD proxmark3;
|
|
|
|
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
|
|
make all;
|
|
|
|
fi
|
|
|
|
|
2016-01-08 22:30:36 +01:00
|
|
|
before_script:
|
2017-01-23 23:17:26 +01:00
|
|
|
|
2017-06-09 14:43:20 +02:00
|
|
|
script:
|
2017-07-04 19:17:39 +02:00
|
|
|
## for the time being we are satisfied if it can be build and then successfully started
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
proxmark3 -h ;
|
|
|
|
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
|
|
./client/proxmark3 -h ;
|
2017-07-04 19:22:15 +02:00
|
|
|
fi
|