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