]> git.zerfleddert.de Git - proxmark3-svn/blame - CI/.travis.yml
Merge pull request #649 from grauerfuchs/master
[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"
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
b1c0f020 15 osx_image: xcode9 # OS X 10.12
b35c11f9 16 - os: osx
b1c0f020 17 osx_image: xcode9.2 # OS X 10.12
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
b1c0f020 26 echo $REPOSITORY_EP;
b35c11f9 27 if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
28 sudo apt-get update -qq;
29 sudo apt-get install -y gcc-arm-none-eabi;
30 elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
31 brew update;
1e431c5d 32 if [[ "$REPOSITORY_EP" == "" ]]; then
b0c73387 33 brew tap proxmark/proxmark3;
1e431c5d 34 else
b1c0f020 35 brew tap "$REPOSITORY_EP" --env=std;
1e431c5d 36 fi
b35c11f9 37 fi
38
39install:
40 if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
2e35aa3a 41 brew info proxmark3;
b35c11f9 42 brew install -v --HEAD proxmark3;
43 elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
44 make all;
45 fi
46
47before_script:
48
49script:
50## for the time being we are satisfied if it can be build and then successfully started
51 if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
52 proxmark3 /dev/notexists travis_test_commands.scr ;
53 elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
54 ./client/proxmark3 /dev/notexists travis_test_commands.scr ;
55 fi
Impressum, Datenschutz