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 #4572 from input-output-hk/coot/ci-scripts
CI scripts
- Loading branch information
Showing
20 changed files
with
78 additions
and
184 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
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
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
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
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
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,10 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
for x in $(find . -name '*.cabal' | grep -v dist-newstyle | cut -c 3-); do | ||
for x in $(fd -e cabal); do | ||
( | ||
d=$(dirname $x) | ||
echo "== $d ==" | ||
cd $d | ||
pushd $d | ||
cabal check | ||
popd | ||
) | ||
done |
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,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eo pipefail | ||
|
||
function check_project () { | ||
project=$1 | ||
n=$() | ||
if [[ -n $(git diff --name-only master..HEAD -- $project) ]];then | ||
if [[ -z $(git diff --name-only master..HEAD -- $project/CHANGELOG.md) ]]; then | ||
echo "$project was modified but its CHANGELOG was not updated" | ||
exit 1 | ||
fi | ||
fi | ||
} | ||
|
||
for cbl in $(fd -e 'cabal'); do | ||
check_project $(dirname $cbl) | ||
done |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,73 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -euo pipefail | ||
|
||
export LC_ALL=C.UTF-8 | ||
fd -p ouroboros-consensus \ | ||
-e hs \ | ||
-E Setup.hs \ | ||
-E ouroboros-consensus/src/Ouroboros/Consensus/Storage/LedgerDB/InMemory.hs \ | ||
-E ouroboros-consensus/src/Ouroboros/Consensus/Storage/LedgerDB/OnDisk.hs \ | ||
-E ouroboros-consensus/src/Ouroboros/Consensus/Storage/LedgerDB/Types.hs \ | ||
-E ouroboros-consensus/src/Ouroboros/Consensus/Mempool/Impl/Pure.hs \ | ||
-E ouroboros-consensus/src/Ouroboros/Consensus/Mempool/Impl/Types.hs\ | ||
-E ouroboros-consensus/src/Ouroboros/Consensus/Mempool/Impl.hs \ | ||
-E ouroboros-consensus/src/Ouroboros/Consensus/Mempool/TxLimits.hs \ | ||
-E ouroboros-consensus/src/Ouroboros/Consensus/Util/Counting.hs \ | ||
-E ouroboros-consensus/src/Ouroboros/Consensus/Util/SOP.hs \ | ||
-E ouroboros-consensus/src/Ouroboros/Consensus/Util/OptNP.hs \ | ||
-E ouroboros-consensus/src/Ouroboros/Consensus/HardFork/Combinator/Util/Functors.hs \ | ||
-E ouroboros-consensus/src/Ouroboros/Consensus/HardFork/Combinator/Util/InPairs.hs \ | ||
-E ouroboros-consensus/src/Ouroboros/Consensus/HardFork/Combinator/Util/Match.hs \ | ||
-E ouroboros-consensus/src/Ouroboros/Consensus/HardFork/Combinator/Util/Telescope.hs \ | ||
-E ouroboros-consensus/src/Ouroboros/Consensus/HardFork/Combinator/Util/DerivingVia.hs \ | ||
-E ouroboros-consensus/src/Ouroboros/Consensus/HardFork/Combinator/Util/Tails.hs \ | ||
-E ouroboros-consensus-test/src/Test/Util/Classify.hs \ | ||
-E ouroboros-consensus/src/Ouroboros/Consensus/Storage/FS/API.hs \ | ||
-E ouroboros-consensus/src/Ouroboros/Consensus/Storage/FS/API/Types.hs \ | ||
-E ouroboros-consensus/src/Ouroboros/Consensus/Storage/FS/CRC.hs \ | ||
-E ouroboros-consensus/src/Ouroboros/Consensus/Storage/FS/Handle.hs \ | ||
-E ouroboros-consensus/src/Ouroboros/Consensus/Storage/FS/IO.hs \ | ||
-E ouroboros-consensus/src/Ouroboros/Consensus/Storage/IO.hs \ | ||
-E ouroboros-consensus-test/src/Test/Util/FS/Sim/Error.hs \ | ||
-E ouroboros-consensus-test/src/Test/Util/FS/Sim/FsTree.hs \ | ||
-E ouroboros-consensus-test/src/Test/Util/FS/Sim/MockFS.hs \ | ||
-E ouroboros-consensus-test/src/Test/Util/FS/Sim/Pure.hs \ | ||
-E ouroboros-consensus-test/src/Test/Util/FS/Sim/STM.hs \ | ||
-E ouroboros-consensus-test/src/Test/Util/Blob.hs \ | ||
-E ouroboros-consensus-cardano-tools/app/DBAnalyser/Parsers.hs \ | ||
-X stylish-haskell \ | ||
-c .stylish-haskell.yaml -i | ||
|
||
# We don't want these deprecation warnings to be removed accidentally | ||
grep "module.*DEPRECATED" ouroboros-consensus/src/Ouroboros/Consensus/Storage/LedgerDB/InMemory.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus/src/Ouroboros/Consensus/Storage/LedgerDB/OnDisk.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus/src/Ouroboros/Consensus/Storage/LedgerDB/Types.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus/src/Ouroboros/Consensus/Mempool/Impl/Pure.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus/src/Ouroboros/Consensus/Mempool/Impl/Types.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus/src/Ouroboros/Consensus/Mempool/Impl.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus/src/Ouroboros/Consensus/Mempool/TxLimits.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus/src/Ouroboros/Consensus/Util/Counting.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus/src/Ouroboros/Consensus/Util/SOP.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus/src/Ouroboros/Consensus/Util/OptNP.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus/src/Ouroboros/Consensus/HardFork/Combinator/Util/Functors.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus/src/Ouroboros/Consensus/HardFork/Combinator/Util/InPairs.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus/src/Ouroboros/Consensus/HardFork/Combinator/Util/Match.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus/src/Ouroboros/Consensus/HardFork/Combinator/Util/Telescope.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus/src/Ouroboros/Consensus/HardFork/Combinator/Util/DerivingVia.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus/src/Ouroboros/Consensus/HardFork/Combinator/Util/Tails.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus-test/src/Test/Util/Classify.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus/src/Ouroboros/Consensus/Storage/FS/API.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus/src/Ouroboros/Consensus/Storage/FS/API/Types.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus/src/Ouroboros/Consensus/Storage/FS/CRC.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus/src/Ouroboros/Consensus/Storage/FS/Handle.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus/src/Ouroboros/Consensus/Storage/FS/IO.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus/src/Ouroboros/Consensus/Storage/IO.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus-test/src/Test/Util/FS/Sim/Error.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus-test/src/Test/Util/FS/Sim/FsTree.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus-test/src/Test/Util/FS/Sim/MockFS.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus-test/src/Test/Util/FS/Sim/Pure.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus-test/src/Test/Util/FS/Sim/STM.hs >/dev/null 2>&1 | ||
grep "module.*DEPRECATED" ouroboros-consensus-test/src/Test/Util/Blob.hs >/dev/null 2>&1 | ||
|
||
fd -p ouroboros-consensus -e cabal -x cabal-fmt -i | ||
# TODO CPP pragmas in export lists are not supported by stylish-haskell | ||
fd . './network-mux' -e hs -E Setup.hs -E TCPInfo.hs -E Pipe.hs -E Channel.hs -E Bearer.hs -X stylish-haskell -c .stylish-haskell-network.yaml -i | ||
fd . './ouroboros-network-api' -e hs -E Setup.hs -X stylish-haskell -c .stylish-haskell-network.yaml -i | ||
fd . './ouroboros-network-framework' -e hs -E Setup.hs -X stylish-haskell -c .stylish-haskell-network.yaml -i | ||
fd . './ouroboros-network-mock' -e hs -E Setup.hs -X stylish-haskell -c .stylish-haskell-network.yaml -i | ||
fd . './ouroboros-network-protocols' -e hs -E Setup.hs -X stylish-haskell -c .stylish-haskell-network.yaml -i | ||
fd . './ouroboros-network' -e hs -E Setup.hs -X stylish-haskell -c .stylish-haskell-network.yaml -i | ||
fd . './cardano-client' -e hs -E Setup.hs -X stylish-haskell -c .stylish-haskell-network.yaml -i |