Skip to content

Commit

Permalink
make travis use git-checkout-modules for branch names ending with /sy…
Browse files Browse the repository at this point in the history
…nc, <3 @slipher
  • Loading branch information
illwieckz committed Nov 30, 2019
1 parent 18803c9 commit 3fdda62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Expand Up @@ -58,13 +58,16 @@ install:
export PATH="/usr/local/opt/ccache/libexec:$PATH"
fi
- pip2 install --user -r src/utils/cbse/requirements.txt
- curl https://gitlab.com/illwieckz/git-checkout-modules/raw/master/git-checkout-modules -o ~/git-checkout-modules
- chmod +x ~/git-checkout-modules

before_script:
- ccache --zero-stats
# In older versions of gcc the missing field initializer warning fires even when the initialization list is empty, which is stupid.
# This issue is fixed in version 5 of gcc, so if we get a newer version on Travis the warning can be re-enabled.
- if [ "$CC" == "gcc" ]; then export CXXFLAGS="$CXXFLAGS -Wno-missing-field-initializers"; fi
- export CXXFLAGS="$CXXFLAGS -D__extern_always_inline=inline"
- ~/git-checkout-modules --only-sub="${TRAVIS_PULL_REQUEST_BRANCH:-${TRAVIS_BRANCH}}":has='/sync$' --print

script:
- cmake -DUSE_PRECOMPILED_HEADER=0
Expand Down

0 comments on commit 3fdda62

Please sign in to comment.