summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-03-30 15:07:00 +0200
committerGitHub <noreply@github.com>2020-03-30 15:07:00 +0200
commitb383484e445b1554c811556181a7815e0308fd62 (patch)
treedc038e9d922bc93b2673c52f59fc1eaf862075e1 /.travis.yml
parent0168709978154a89f137b44f33647e5d28a46250 (diff)
parent3644036fd3d8678ac44695cc49ae63c4aaeb1b97 (diff)
Merge pull request #37421 from akien-mga/python-format-black
SCons: Format buildsystem files with psf/black
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 8b58e12563..14ee95e77e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -129,9 +129,6 @@ matrix:
before_install:
- eval "${MATRIX_EVAL}"
- - if [ "$STATIC_CHECKS" = "yes" ]; then
- unset SCONS_CACHE;
- fi
install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
@@ -150,6 +147,10 @@ install:
./emsdk/emsdk install latest;
./emsdk/emsdk activate latest;
fi
+ - if [ "$STATIC_CHECKS" = "yes" ]; then
+ unset SCONS_CACHE;
+ pip3 install --user black pygments;
+ fi
before_script:
- if [ "$PLATFORM" = "android" ]; then
@@ -160,6 +161,7 @@ before_script:
script:
- if [ "$STATIC_CHECKS" = "yes" ]; then
sh ./misc/travis/clang-format.sh &&
+ sh ./misc/travis/black-format.sh &&
doc/tools/makerst.py --dry-run doc/classes modules;
else
scons -j2 CC=$CC CXX=$CXX platform=$PLATFORM tools=$TOOLS target=$TARGET $OPTIONS $EXTRA_ARGS &&