Simplified leading symbol logic and change setting to default to ON
[betaflight.git] / .travis.yml
blobe794c0ea8af3d76475451ef7c82ba3f50ece3a9b
1 os:
2   - linux
4 sudo: false
6 dist: trusty
8 addons:
9   apt:
10     packages:
11       - lcov
12       - build-essential
13       - git
14       - libc6-i386
15       - time
16       - libblocksruntime-dev
18 git:
19   depth: 5
21 # We use cpp for unit tests, and c for the main project.
22 language: cpp
23 compiler: clang
25 env:
26 #  - PUBLISHMETA=True
27 #  - PUBLISHDOCS=True
28 # Specify the main Mafile supported goals.
29   - GOAL=test-all
30   - GOAL=targets-group-1
31   - GOAL=targets-group-2
32   - GOAL=targets-group-3
33   - GOAL=targets-group-4
34   - GOAL=targets-group-rest
35 #  - GOAL=all
36 #  - GOAL=AFROMINI
37 #  - GOAL=AIORACERF3
38 #  - GOAL=...
39 # Or specify targets to run.
40 #  - TARGET=AFROMINI
41 #  - TARGET=AIORACERF3
42 #  - TARGET=...
44 before_install:
45   - |
46     echo "Target branch: $TRAVIS_BRANCH"
47     echo "Commit range: $TRAVIS_COMMIT_RANGE"
48     if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
49       COMMIT_RANGE="$TRAVIS_BRANCH"
50     else
51       COMMIT_RANGE="$TRAVIS_COMMIT_RANGE"
52     fi
53     git diff --name-only $COMMIT_RANGE | grep -qvE '(\.md$)|(^(docs|support|unified_targets))/' || {
54       echo "Only files not used in the build process were updated, aborting."
55       exit
56     }
57   - pip install --user cpp-coveralls
58   - gem install coveralls-lcov
60 install:
61   - make arm_sdk_install
63 before_script:
64   - make arm_sdk_version
65   - clang --version
66   - clang++ --version
67   - gcc --version
69 script: ./.travis.sh
71 cache:
72   timeout: 1000
73   directories:
74   - downloads
75   - tools
77 # Notifications are encrypted to betaflight/betaflight to avoid spam from forks
78 # Command: `travis encrypt "<secret>" -r betaflight/betaflight --com`
79 notifications:
80   slack:
81     rooms:
82       - secure: URtjwXnjpAKXxt2GTLef/IS7ytm4wZd6Qv3Nb0mi2sS6a/8XSE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WELc7qHW6aGrWx7r8EqnE+0i3fCs0PwvnC5cVQCkrd3fO82yEwxv3WO3pRgPON2+T+YIlW7tpoFqcAsAZcaVOiCEd3zlht1fccHB4VX7D/+2r6Socl+jJ0CWtLWCXMJqsrLgb4x9MIgB/PLe37/FGalE0dtYvtQtc9FydWfrBzjT2lbSiwbxCVcq12z4ysYr9qzKZCtBq1BMKXMIu2IgA39I2voZFygTYdJIeN5uWJWV3NwFsfBOoNoo7uEVLMy7GKFbMIjB2zz9tlq6I3g=
86     on_success: always  # options: [always|never|change] default: always
87     on_failure: always  # options: [always|never|change] default: always
88     on_start: always     # options: [always|never|change] default: always