2019-08-21 18:21:05 +00:00
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- l10n_master
|
|
|
|
|
2018-05-19 04:49:26 +00:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
2018-05-21 01:42:19 +00:00
|
|
|
sudo: false
|
2018-05-18 04:12:30 +00:00
|
|
|
|
2019-07-27 03:33:02 +00:00
|
|
|
dist: bionic
|
2018-05-20 12:48:39 +00:00
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- rpm
|
|
|
|
|
2018-05-21 01:42:19 +00:00
|
|
|
git:
|
|
|
|
depth: 5
|
|
|
|
|
|
|
|
language: node_js
|
|
|
|
|
|
|
|
node_js:
|
2019-07-27 03:33:02 +00:00
|
|
|
- 10
|
2018-05-21 01:42:19 +00:00
|
|
|
|
2018-06-01 16:46:10 +00:00
|
|
|
addons:
|
|
|
|
chrome: stable
|
|
|
|
|
2019-08-21 18:21:05 +00:00
|
|
|
before_install:
|
|
|
|
- |
|
|
|
|
echo "Target branch: $TRAVIS_BRANCH"
|
|
|
|
echo "Commit range: $TRAVIS_COMMIT_RANGE"
|
|
|
|
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
|
|
|
COMMIT_RANGE="$TRAVIS_BRANCH"
|
|
|
|
else
|
|
|
|
COMMIT_RANGE="$TRAVIS_COMMIT_RANGE"
|
|
|
|
fi
|
|
|
|
git diff --name-only $COMMIT_RANGE | grep -qvE '(\.md)|(^(locales|resources/osd))/' || {
|
|
|
|
echo "Only files not used in the build process were updated, aborting."
|
|
|
|
exit
|
|
|
|
}
|
|
|
|
|
2017-11-14 03:00:02 +00:00
|
|
|
script:
|
2019-04-30 04:15:53 +00:00
|
|
|
- yarn test
|
|
|
|
- yarn gulp release
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then yarn gulp release --chromeos; fi
|
2017-11-14 03:00:02 +00:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
2018-05-20 13:14:25 +00:00
|
|
|
|
2018-12-29 03:48:11 +00:00
|
|
|
# Notifications are encrypted to betaflight/betaflight to avoid spam from forks
|
|
|
|
# Command: `travis encrypt "<secret>" --com -r betaflight/betaflight-configurator`
|
2018-05-20 13:14:25 +00:00
|
|
|
notifications:
|
2018-12-29 03:48:11 +00:00
|
|
|
slack:
|
|
|
|
rooms:
|
|
|
|
secure: jjGWN5Ap6WinGX86KeIl2azccMWWiXqTf4XfAUteMobme5yn17WpyycD12WNChGLF2ieiNvxS/vsVaAKKx24WN5dZ9eggDMCBYHGqzQmuho26BZ4tc+Tzt+A2fFgJb5z9APThYT2W1lua6XumPzVnoJtrLV+hLU1xWPqF29/W76FC91MjFeLpjLmG51BUqTIBCABw+PVpG2z1+DU1NVT0zV0BoRafyHbn/3ezRRXwC5oV00kRswGHkSehj6+eGWDsUoOwupHJPgV/wl52sX9I+XpoherzjvB0p27820YKtkUiG7EIgriK1WSxT46zcPa+avV4tbqrAR2Jrz/GpNv+QVYN8giYClLqecFiHWYB1/WTNpALG30NzVrjPdEzSHJrtH1EFRmZjXn31i9pAinihsIedfbJfVpNIy6N/lhmu+WBoLnNsU7HE86d6cpMGr6EpGnN4LH5vJOmk2f38x0/VrdiO0EDMyTxBV15rqmVTfZkHU24TXyX4N4q2zI+40M4pGtRrvHx02WiA3GPEYHe/OXICPvlY4YCmzGo79FCqZMcCcBVdg4I1e/M64/982eNREQGmGHvNRtePZesvEoqvp4Ra2Oef9gFyDMx0mpWYkMUYwWEo0FzeoApQNw1ModOcD8QCpS527YODtEpxzfMRs6ILn4kFWdn+NptdPFjeY=
|
2018-05-20 13:14:25 +00:00
|
|
|
webhooks:
|
|
|
|
urls:
|
2018-12-29 03:48:11 +00:00
|
|
|
- secure: FKa1zx+QP/3Z66b7rsKnKkMcn/0yvqefhGNl85bXhOPusZJS09DZnFSmrz2nXtOTnDdxsh/pT+Xj29782aVy7ByV0ul+fBAqKAYbkOPsnDmkxZizxrHumY99hzdK+0EorOZSQLAkpaSpz46NE5Fm2pJTc67MP5ZpfNVPCCXq0SYIEBNt3D745tfEda9fJjc0g+8zjed2YqMqC3Gqbnq8ebQZ7vBbIFfTtn4wrYfrWeS1kv6MX8dndVDueuKgRH1o/h2DPYDCk9WpHDniQ1TtPiwhMXOEH8G0dMkcR9VbBCz3n28JjjrxpIpXY1Ulk5wF3Aj0/jxf5yH6kpu4XdBINsMHE6GFCKJ/pnBf6RbggMUUuU66F2DWb6oxcdVEpTkixaFrXBqbsfM+UYj+QYoLvyxHqB/XKL3AzwPrUqys4NU3RQTOAFn5YXxzFWzjKovMeq+6S6lDA4E/L4OvO7+iCghjmFFdE0FF30GTue/Q79RmNXRZAJh9uR1UOtppc1iMn+QardzfRJ20qaohvP++ODCMnDfYLKzTXaZS+xCpUpZplwbV9wJMGUVSEwSuOX2L0RH5oIHceFqflKpKAIVlxMMy33AmoVclDCenaCwSHgGBtY94JunGQSBB+nsZz2YEWKecdBeICMZ7VWG9NAZkYOzphothFZYiwJFCykprjIg=
|
2018-05-20 13:14:25 +00:00
|
|
|
on_success: always # options: [always|never|change] default: always
|
|
|
|
on_failure: always # options: [always|never|change] default: always
|
|
|
|
on_start: always # options: [always|never|change] default: always
|