]> git.zerfleddert.de Git - proxmark3-svn/blame - .travis.yml
added if
[proxmark3-svn] / .travis.yml
CommitLineData
b35c11f9 1# Travis-CI config
b6c370f1 2# variable REPOSITORY_EP must be filled with repository name. as sample: "merlokk/proxmark3"
b35c11f9 3language: c
4
5compiler: gcc
6
7# Test on Linux and MacOS
8matrix:
9 include:
10 - os: osx
11 osx_image: xcode7.3 # OS X 10.11
12 - os: osx
245a6b20 13 osx_image: xcode8.3 # OS X 10.12
b35c11f9 14 - os: osx
245a6b20 15 osx_image: xcode9 # OS X 10.13
b35c11f9 16 - os: osx
245a6b20 17 osx_image: xcode9.1 # OS X 10.13.1
b35c11f9 18 - os: linux
19 dist: trusty
20 sudo: required
21
22before_install:
23## Install ARM toolchain on Linux.
24## add our homebrew tap for MacOS
25## Note: all dependencies on MacOS should be resolved by the brew install command
26 if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
27 sudo apt-get update -qq;
28 sudo apt-get install -y gcc-arm-none-eabi;
29 elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
30 brew update;
b0c73387 31 if [[ "$REPOSITORY_EP" == "" ]]; then
32 brew tap proxmark/proxmark3;
33 else
34 brew tap "$REPOSITORY_EP";
35 fi
b35c11f9 36 fi
37
38install:
39 if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
2e35aa3a 40 brew info proxmark3;
b35c11f9 41 brew install -v --HEAD proxmark3;
42 elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
43 make all;
44 fi
45
46before_script:
47
48script:
49## for the time being we are satisfied if it can be build and then successfully started
50 if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
51 proxmark3 /dev/notexists travis_test_commands.scr ;
52 elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
53 ./client/proxmark3 /dev/notexists travis_test_commands.scr ;
54 fi
Impressum, Datenschutz