chg: leanient parsing of tcp:/bt:/socket: vars
[RRG-proxmark3.git] / .travis.yml
blobf8cf8228f0c4c1ef3e03c4ba777870721da37240
1 # Travis-CI Build for RfidResearchGroup/Proxmark3
2 language: c
4 #default linux build env is: xenial
5 compiler: gcc
7 os:
8   - linux
9   - osx
11 dist: xenial
13 osx_image: xcode11
15 # move some env variables to homebrew env
16 env:
17   global:
18     - HOMEBREW_TRAVIS_BRANCH=$TRAVIS_BRANCH
19     - HOMEBREW_TRAVIS_COMMIT=$TRAVIS_COMMIT
20   jobs:
21     - TO_TEST=MAKEFILE MAKE_PARAMS='PLATFORM_EXTRAS='
22     - TO_TEST=MAKEFILE MAKE_PARAMS='PLATFORM_EXTRAS=BTADDON'
23     - TO_TEST=CMAKE
25 addons:
26   apt:
27     packages:
28       - gcc-arm-none-eabi
29       - libnewlib-dev
30       - libbluetooth-dev
31   homebrew:
32     packages:
33       - readline
34       - qt5
35       - RfidResearchGroup/proxmark3/arm-none-eabi-gcc
36     taps: RfidResearchGroup/proxmark3
37 # update trick to fix https://travis-ci.community/t/macos-build-fails-because-of-homebrew-bundle-unknown-command/7296/14
38     update: true
40 before_install:
41   # bug?
42   # homebrew update replaced python2.7 by python3.7 but
43   # python3 link failed while python@2 still present, so let's do it again:
44   if [ "$TRAVIS_OS_NAME" == "osx" ]; then
45     brew link --overwrite python;
46   fi
48 install:
49   if ! arm-none-eabi-gcc -v; then
50     echo "arm-none-eabi-gcc [ERROR]";
51     travis_terminate 1;
52   fi
54 script:
55   - if [ "$TO_TEST" = "MAKEFILE" ]; then
56       make clean && make V=1 "$MAKE_PARAMS";
57       ./pm3test.sh;
58     fi
59   - if [ "$TO_TEST" = "CMAKE" ]; then
60       mkdir -p client/build && ( cd client/build && cmake .. && make VERBOSE=1 );
61       PM3BIN=./client/build/proxmark3 ./pm3test.sh client;
62     fi