Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bin/build_coverage.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -euo pipefail

lcov --directory . --capture --output-file coverage.info

# Remove external files and dependencies
Expand Down
6 changes: 4 additions & 2 deletions bin/build_deb_package.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env bash

set -euo pipefail

rm -rf build_deb_package
cmake -B build_deb_package -DCMAKE_BUILD_TYPE=Release -G Ninja
cmake --build build_deb_package || exit 1
cd build_deb_package || exit 1
cmake --build build_deb_package
cd build_deb_package
cpack -G DEB
4 changes: 3 additions & 1 deletion bin/build_release.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env bash

set -euo pipefail

rm -rf build_release
cmake -B build_release -DCMAKE_BUILD_TYPE=Release -G Ninja
cmake --build build_release || exit 1
cmake --build build_release
cp "$(cat build_release/filc.path)" .
6 changes: 4 additions & 2 deletions bin/build_rpm_package.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/usr/bin/env bash

set -euo pipefail

rm -rf build_rpm_package
cmake -B build_rpm_package -DCMAKE_BUILD_TYPE=Release -G Ninja
cmake --build build_rpm_package || exit 1
cmake --build build_rpm_package
echo "* $(date +"%a %b %d %Y") filc developers - $(cat VERSION)
- Package from git sha $(git show-ref --head -s HEAD)" > build_rpm_package/changelog
cd build_rpm_package || exit 1
cd build_rpm_package
cpack -G RPM
2 changes: 2 additions & 0 deletions bin/check_no_changes.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -euo pipefail

if [[ -z "$(git status --porcelain)" ]]; then
exit 0
else
Expand Down
2 changes: 2 additions & 0 deletions bin/download_antlr.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -euo pipefail

if (($# != 1)); then
echo -e "\033[31mUsage : $0 <version>\033[0m"
exit 1
Expand Down
2 changes: 2 additions & 0 deletions bin/generate_version.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -euo pipefail

# Get version in argument
if (($# != 1)); then
echo -e "\033[31mUsage : $0 <new version>\033[0m"
Expand Down
2 changes: 2 additions & 0 deletions bin/run_clang-format.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -euo pipefail

FORMAT="clang-format -style=file -i"

$FORMAT main.cpp
Expand Down
6 changes: 4 additions & 2 deletions bin/run_e2e_tests.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env bash

set -euo pipefail

rm -rf build_e2e_tests
cmake -B build_e2e_tests -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=On -G Ninja
cmake --build build_e2e_tests --target e2e-tests || exit 1
cd build_e2e_tests || exit 1
cmake --build build_e2e_tests --target e2e-tests
cd build_e2e_tests
ctest -L e2e --output-on-failure
6 changes: 4 additions & 2 deletions bin/run_unit_tests.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env bash

set -euo pipefail

rm -rf build_unit_tests
cmake -B build_unit_tests -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=On -DCODE_COVERAGE=On -G Ninja
cmake --build build_unit_tests --target unit-tests || exit 1
cd build_unit_tests || exit 1
cmake --build build_unit_tests --target unit-tests
cd build_unit_tests
ctest -L unit --output-on-failure