This repository was archived by the owner on Aug 18, 2020. It is now read-only.
File tree 2 files changed +13
-21
lines changed
2 files changed +13
-21
lines changed Original file line number Diff line number Diff line change 18
18
, forceDontCheck ? false
19
19
, enableProfiling ? false
20
20
, enableDebugging ? false
21
+ , enableBenchmarks ? true
21
22
, allowCustomConfig ? true
22
23
} :
23
24
46
47
kill $TAILPID
47
48
'' ;
48
49
} ) ;
50
+ # Enables building but not running of benchmarks when
51
+ # enableBenchmarks argument is true.
52
+ buildWithBenchmarks = drv : if enableBenchmarks
53
+ then doBenchmark ( appendConfigureFlag drv "--enable-benchmarks" )
54
+ else drv ;
55
+
49
56
cardanoPkgs = ( ( import ./pkgs { inherit pkgs ; } ) . override {
50
57
ghc = overrideDerivation pkgs . haskell . compiler . ghc822 ( drv : {
51
58
patches = drv . patches ++ [ ./ghc-8.0.2-darwin-rec-link.patch ] ;
76
83
# cardano-sl-auxx = addGitRev (justStaticExecutables super.cardano-sl-auxx);
77
84
cardano-sl-auxx = addGitRev ( justStaticExecutables super . cardano-sl-auxx ) ;
78
85
cardano-sl-node = addGitRev super . cardano-sl-node ;
79
- cardano-sl-wallet-new = addGitRev ( justStaticExecutables super . cardano-sl-wallet-new ) ;
86
+ cardano-sl-wallet-new = addGitRev ( justStaticExecutables ( buildWithBenchmarks super . cardano-sl-wallet-new ) ) ;
80
87
cardano-sl-tools = addGitRev ( justStaticExecutables ( overrideCabal super . cardano-sl-tools ( drv : {
81
88
# waiting on load-command size fix in dyld
82
89
doCheck = ! pkgs . stdenv . isDarwin ;
Original file line number Diff line number Diff line change 22
22
23
23
# TODO: CSL-1133: Add test coverage to CI. To be reenabled when build times
24
24
# become smaller and allow coverage report to be built.
25
- # projects="core db lrc infra update ssc godtossing txp"
26
- # to_build=''
27
-
28
- # for prj in $projects; do
29
- # to_build="$to_build cardano-sl-$prj"
30
- # done
31
25
32
26
for trgt in $targets ; do
33
- # echo "Prebuilding dependencies for $trgt, quietly.."
34
- # nix-shell -A $trgt --run true --no-build-output --cores 0 --max-jobs 4 default.nix ||
35
- # echo "Prebuild failed!"
36
-
37
27
echo " Building $trgt verbosely.."
38
- nix-build -A " $trgt " -o " $trgt .root" --argstr gitrev " $BUILDKITE_COMMIT " --argstr buildId " $BUILDKITE_BUILD_NUMBER "
28
+ nix-build -A " $trgt " -o " $trgt .root" \
29
+ --argstr gitrev " $BUILDKITE_COMMIT " \
30
+ --argstr buildId " $BUILDKITE_BUILD_NUMBER " \
31
+ --arg enableBenchmarks true
32
+
39
33
# TODO: CSL-1133
40
34
# if [[ "$trgt" == "cardano-sl" ]]; then
41
35
# stack test --nix --fast --jobs=2 --coverage \
@@ -44,12 +38,3 @@ for trgt in $targets; do
44
38
# fi
45
39
46
40
done
47
-
48
- # if [[ "$OS_NAME" == "linux" && "$BUILDKITE_BRANCH" == "master" && "$BUILDKITE_PULL_REQUEST" == "false" ]]; then
49
- # XXX: DEVOPS-728 this won't work, unless `GITHUB_CARDANO_DOCS_ACCESS_2` and `GITHUB_CARDANO_DOCS_ACCESS` vars are supplied
50
- #
51
- # ./update-wallet-web-api-docs.sh
52
- # ./update-explorer-web-api-docs.sh
53
- # ./update-cli-docs.sh
54
- # ./update-haddock.sh
55
- # fi
You can’t perform that action at this time.
0 commit comments