-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request LMMS#3476 from zapashcanon/shellcheck
Add shellcheck to the build
- Loading branch information
Showing
18 changed files
with
127 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
if [ "$TYPE" != 'style' ]; then | ||
ccache -s | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
if [ "$TYPE" = 'style' ]; then | ||
sudo apt-get -yqq update | ||
sudo apt-get install shellcheck | ||
else | ||
"$TRAVIS_BUILD_DIR/.travis/$TRAVIS_OS_NAME.$TARGET_OS.before_install.sh" | ||
"$TRAVIS_BUILD_DIR/.travis/$TRAVIS_OS_NAME.$TARGET_OS.install.sh" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
# shellcheck disable=SC2086 | ||
cmake -DUSE_WERROR=ON $CMAKE_FLAGS .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
CACHE_DIR=$TRAVIS_BUILD_DIR/apt_mingw_cache/$1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
sudo add-apt-repository ppa:tobydox/mingw-x-trusty -y | ||
sudo apt-get update -qq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
export CMAKE_OPTS="$CMAKE_FLAGS -DUSE_WERROR=ON" | ||
../cmake/build_mingw32.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
. .travis/linux.win32.before_install.sh | ||
set -e | ||
|
||
"$TRAVIS_BUILD_DIR/.travis/linux.win32.before_install.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
export CMAKE_OPTS="$CMAKE_FLAGS -DUSE_WERROR=ON" | ||
../cmake/build_mingw64.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
brew update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,40 @@ | ||
#!/usr/bin/env bash | ||
|
||
PACKAGES="cmake pkgconfig fftw libogg libvorbis libsndfile libsamplerate jack sdl stk portaudio node fltk" | ||
set -e | ||
|
||
PACKAGES="cmake pkg-config fftw libogg libvorbis libsndfile libsamplerate jack sdl stk portaudio node fltk" | ||
|
||
if [ "$QT5" ]; then | ||
PACKAGES="$PACKAGES homebrew/versions/qt55" | ||
PACKAGES="$PACKAGES qt@5.5" | ||
else | ||
PACKAGES="$PACKAGES cartr/qt4/qt" | ||
PACKAGES="$PACKAGES cartr/qt4/qt@4" | ||
fi | ||
|
||
if "${TRAVIS}"; then | ||
PACKAGES="$PACKAGES ccache" | ||
fi | ||
|
||
# removing already installed packages from the list | ||
for p in $(brew list); do | ||
PACKAGES=${PACKAGES//$p/} | ||
done; | ||
|
||
# shellcheck disable=SC2086 | ||
brew install $PACKAGES ccache | ||
brew install $PACKAGES | ||
|
||
# Recompile fluid-synth without CoreAudio per issues #649 | ||
# Changes to fluid-synth.rb must be pushed to URL prior to use | ||
url=$(git remote get-url origin) | ||
branch=$(git symbolic-ref --short HEAD) | ||
brew install --build-from-source "$url/raw/$branch/cmake/apple/fluid-synth.rb" | ||
if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ]; then | ||
slug=$TRAVIS_PULL_REQUEST_SLUG | ||
branch=$TRAVIS_PULL_REQUEST_BRANCH | ||
elif "${TRAVIS}"; then | ||
slug=$TRAVIS_REPO_SLUG | ||
branch=$TRAVIS_BRANCH | ||
else | ||
slug="LMMS/lmms" | ||
branch=$(git symbolic-ref --short HEAD) | ||
fi | ||
|
||
brew install --build-from-source "https://raw.githubusercontent.com/${slug}/${branch}/cmake/apple/fluid-synth.rb" | ||
|
||
sudo npm install -g appdmg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
if [ "$TYPE" = 'style' ]; then | ||
|
||
# shellcheck disable=SC2046 | ||
shellcheck $(find -O3 "$TRAVIS_BUILD_DIR/.travis/" "$TRAVIS_BUILD_DIR/cmake/" -type f -name '*.sh' -o -name "*.sh.in") | ||
|
||
else | ||
|
||
mkdir build | ||
cd build | ||
|
||
export CMAKE_FLAGS="-DWANT_QT5=$QT5 -DUSE_WERROR=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo" | ||
|
||
if [ -z "$TRAVIS_TAG" ]; then | ||
export CMAKE_FLAGS="$CMAKE_FLAGS -DUSE_CCACHE=ON" | ||
fi | ||
|
||
"$TRAVIS_BUILD_DIR/.travis/$TRAVIS_OS_NAME.$TARGET_OS.script.sh" | ||
|
||
make -j4 | ||
|
||
if [[ $TARGET_OS != win* ]]; then | ||
|
||
make tests | ||
tests/tests | ||
|
||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters