]> git.zerfleddert.de Git - proxmark3-svn/blame - CI/.travis.yml
update CI/.travis.yml (#929)
[proxmark3-svn] / CI / .travis.yml
CommitLineData
b35c11f9 1# Travis-CI config
b6c370f1 2# variable REPOSITORY_EP must be filled with repository name. as sample: "merlokk/proxmark3"
c85805b8 3
b35c11f9 4language: c
5
6compiler: gcc
7
8# Test on Linux and MacOS
c85805b8 9jobs:
b35c11f9 10 include:
b35c11f9 11 - os: osx
f3c8131a 12 osx_image: xcode9.4 # OS X 10.13
b35c11f9 13 - os: osx
f3c8131a 14 osx_image: xcode10 # OS X 10.13
c85805b8 15 - os: osx
16 osx_image: xcode11 # OS X 10.14
b35c11f9 17 - os: linux
c85805b8 18 dist: trusty # Ubuntu 14.04
19 - os: linux
20 dist: xenial # Ubuntu 16.04
21 - os: linux
22 dist: bionic # Ubuntu 18.04
23
24git:
25 depth: false
b35c11f9 26
27before_install:
28## Install ARM toolchain on Linux.
29## add our homebrew tap for MacOS
30## Note: all dependencies on MacOS should be resolved by the brew install command
b1c0f020 31 echo $REPOSITORY_EP;
b35c11f9 32 if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
33 sudo apt-get update -qq;
c85805b8 34 sudo apt-get install -y gcc-arm-none-eabi libnewlib-arm-none-eabi libpcsclite-dev;
b35c11f9 35 elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
36 brew update;
1e431c5d 37 if [[ "$REPOSITORY_EP" == "" ]]; then
c85805b8 38 brew tap --full proxmark/proxmark3;
1e431c5d 39 else
c85805b8 40 brew tap --full "$REPOSITORY_EP" --env=std;
1e431c5d 41 fi
b35c11f9 42 fi
43
44install:
45 if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
2e35aa3a 46 brew info proxmark3;
b35c11f9 47 brew install -v --HEAD proxmark3;
48 elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
49 make all;
50 fi
51
52before_script:
53
54script:
c85805b8 55## for the time being we are satisfied if it can be build and hf mf hardnested runs
b35c11f9 56 if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
57 proxmark3 /dev/notexists travis_test_commands.scr ;
58 elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
59 ./client/proxmark3 /dev/notexists travis_test_commands.scr ;
60 fi
Impressum, Datenschutz