]>
Commit | Line | Data |
---|---|---|
1 | # Travis-CI config | |
2 | language: c | |
3 | ||
4 | compiler: gcc | |
5 | ||
6 | # Test on Linux and MacOS | |
7 | matrix: | |
8 | include: | |
9 | - os: osx | |
10 | osx_image: xcode7.3 # OS X 10.11 | |
11 | - os: osx | |
12 | osx_image: xcode8 # OS X 10.11 | |
13 | - os: osx | |
14 | osx_image: xcode8.1 # OS X 10.12 | |
15 | - os: osx | |
16 | osx_image: xcode8.3 # OS X 10.12 | |
17 | - os: linux | |
18 | dist: trusty | |
19 | sudo: required | |
20 | ||
21 | before_install: | |
22 | ## Install ARM toolchain on Linux. | |
23 | ## add our homebrew tap for MacOS | |
24 | ## Note: all dependencies on MacOS should be resolved by the brew install command | |
25 | if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then | |
26 | sudo apt-get update -qq; | |
27 | sudo apt-get install -y gcc-arm-none-eabi; | |
28 | elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then | |
29 | brew update; | |
30 | brew tap pwpiwi/proxmark3; | |
31 | fi | |
32 | ||
33 | install: | |
34 | if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then | |
35 | brew install -v --HEAD proxmark3; | |
36 | elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then | |
37 | make all; | |
38 | fi | |
39 | ||
40 | before_script: | |
41 | ||
42 | script: | |
43 | ## for the time being we are satisfied if it can be build and then successfully started | |
44 | if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then | |
45 | proxmark3 /dev/notexists travis_test_commands.scr ; | |
46 | elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then | |
47 | ./client/proxmark3 /dev/notexists travis_test_commands.scr ; | |
48 | fi |