Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 90449d7

Browse files
authored
Merge pull request #115 from input-output-hk/fix-build
Fix build
2 parents 8d9a444 + 35a2ba0 commit 90449d7

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cache:
1414
- "$HOME/build/input-output-hk/pos-haskell-prototype/.stack-work"
1515
# TODO: https://github.com/npm/fs-write-stream-atomic/pull/14
1616
#- daedalus/node_modules
17-
- daedalus/bower_components
17+
#- daedalus/bower_components
1818

1919
before_install:
2020
- export CSL_SYSTEM_TAG=$TRAVIS_OS_NAME
@@ -26,18 +26,18 @@ before_install:
2626
xz --strip-components=1 -C ~/.local/bin
2727
- mkdir s3
2828
script:
29+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export EXTRA_STACK="--test --haddock"; else export EXTRA_STACK="--no-haddock-deps"; fi
2930
- stack --nix --no-terminal --local-bin-path s3/ install --fast --ghc-options="-j +RTS -A128m -n2m -RTS"
30-
--no-haddock-deps --jobs=4
31+
$EXTRA_STACK --jobs=4
3132
--flag cardano-sl:-asserts
3233
--flag cardano-sl-core:-dev-mode
33-
--test
3434
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./update_haddock.sh; fi
3535
- stack exec --nix -- cardano-wallet-hs2purs
3636
- stack exec --nix -- cardano-wallet-web-docs
3737
- cd daedalus
3838
- nix-shell -p nodejs --run "npm install && npm run build:prod"
3939
- cd ..
40-
- XZ_OPT=-1 tar Jcvf s3/daedalus-bridge.tar.xz daedalus/ > /dev/null
40+
- XZ_OPT=-1 tar Jcvf s3/daedalus-bridge.tar.xz daedalus/ 2> /dev/null
4141
- echo $TRAVIS_BUILD_NUMBER > s3/build-id
4242
deploy:
4343
provider: s3

appveyor.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ environment:
77
global:
88
# Avoid long paths on Windows
99
STACK_ROOT: "c:\\sr"
10-
STACK_WORK: ".stack-work"
10+
STACK_WORK: ".w"
1111
CSL_SYSTEM_TAG: "win64"
1212
CACHE_DIR: "c:\\cache"
1313

@@ -46,7 +46,7 @@ before_test:
4646
- IF EXIST %CACHED_STACK_ROOT% xcopy /q /s /e /r /k /i /v /h /y %CACHED_STACK_ROOT% %STACK_ROOT%
4747
- IF EXIST %CACHED_STACK_WORK% xcopy /q /s /e /r /k /i /v /h /y %CACHED_STACK_WORK% %STACK_WORK%
4848
# Install stack
49-
- curl -sSL -o stack.zip --insecure http://www.stackage.org/stack/windows-x86_64
49+
- curl -sSL -o stack.zip http://www.stackage.org/stack/windows-x86_64
5050
- 7z x stack.zip stack.exe
5151

5252

@@ -60,6 +60,7 @@ test_script:
6060
# Retry transient failures due to https://github.com/haskell/cabal/issues/4005
6161
- scripts\appveyor-retry call stack --no-terminal --local-bin-path daedalus
6262
install -j 2 --test --no-haddock-deps --bench --no-run-benchmarks
63+
--work-dir %STACK_WORK%
6364
--flag cardano-sl:with-web
6465
--flag cardano-sl:with-wallet
6566
--flag cardano-sl:-asserts
@@ -68,7 +69,7 @@ test_script:
6869
--extra-lib-dirs="C:\OpenSSL-Win64"
6970
--extra-include-dirs="C:\projects\pos-haskell-prototype\rocksdb\include"
7071
--extra-lib-dirs="C:\projects\pos-haskell-prototype"
71-
- stack exec -- cardano-wallet-hs2purs
72+
- stack exec --work-dir %STACK_WORK% -- cardano-wallet-hs2purs
7273
- copy log-config-prod.yaml daedalus\log-config-prod.yaml
7374
- cd daedalus
7475
- Echo %APPVEYOR_BUILD_VERSION% > build-id

update_haddock.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ set -euo pipefail
33

44
echo "Haddock updating"
55

6-
echo "**** 1. Rebuild documentation ****"
7-
stack --nix --no-terminal haddock --fast
8-
96
readonly PROJECT_NAME=$(cat ./*.cabal | grep "name:" | awk '{ print $2 }')
107
readonly PROJECT_VERSION=$(cat ./*.cabal | grep "version:" | grep -v "cabal" | awk '{ print $2 }')
118
readonly PROJECT_FULL_NAME="${PROJECT_NAME}"-"${PROJECT_VERSION}"

0 commit comments

Comments
 (0)