mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
THRIFT-2638 travis: build with Haskell
Patch: John Chee
This commit is contained in:
parent
2591be2790
commit
c0a7d72c83
@ -33,11 +33,14 @@ env:
|
||||
# Small Set
|
||||
- CONFIG="--without-erlang --without-haskell --without-python --without-go --without-lua --without-d --without-ruby --without-nodejs --without-java"
|
||||
|
||||
# C & C++ & Haskell (for some reason qt4 is required)
|
||||
- CONFIG="--without-csharp --without-java --without-erlang --without-nodejs --without-lua --without-python --without-perl --without-php --without-php-extension --without-ruby --without-go --without-d" GHCVER=7.8.3
|
||||
|
||||
# Build All
|
||||
# TODO: fix these languages
|
||||
- CONFIG="--without-erlang --without-haskell --without-python --without-go --without-lua"
|
||||
- CONFIG="--without-erlang --without-python --without-go --without-lua" GHCVER=7.8.3
|
||||
|
||||
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- compiler: gcc
|
||||
@ -61,6 +64,8 @@ matrix:
|
||||
## Default build sequence:
|
||||
before_install:
|
||||
- sh contrib/installDependencies.sh 1> /dev/null;
|
||||
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/1.20/bin:$PATH
|
||||
- cabal update
|
||||
|
||||
install:
|
||||
- sh bootstrap.sh;
|
||||
|
@ -52,9 +52,10 @@ sudo apt-get install -qq erlang-base erlang-eunit erlang-dev
|
||||
echo "golang-go golang-go/dashboard boolean false" | debconf-set-selections
|
||||
sudo apt-get -y install -qq golang golang-go
|
||||
|
||||
# Haskell dependencies TODO
|
||||
#sudo apt-get install -qq ghc cabal-install libghc-binary-dev libghc-network-dev libghc-http-dev libghc-hashable-dev libghc-unordered-containers-dev libghc-vector-dev
|
||||
#sudo cabal update
|
||||
# Haskell dependencies
|
||||
sudo add-apt-repository -y ppa:hvr/ghc
|
||||
sudo apt-get update
|
||||
sudo apt-get install cabal-install-1.20 ghc-$GHCVER
|
||||
|
||||
# Lua dependencies
|
||||
sudo apt-get install -qq lua5.2 lua5.2-dev
|
||||
|
@ -26,8 +26,7 @@ EXTRA_DIST = \
|
||||
src
|
||||
|
||||
all-local:
|
||||
$(CABAL) configure $(CABAL_CONFIGURE_FLAGS)
|
||||
$(CABAL) build
|
||||
$(CABAL) install
|
||||
|
||||
install-exec-hook:
|
||||
$(CABAL) install
|
||||
|
@ -18,9 +18,8 @@
|
||||
#
|
||||
|
||||
all-local:
|
||||
$(CABAL) configure $(CABAL_CONFIGURE_FLAGS)
|
||||
$(top_builddir)/compiler/cpp/thrift --gen hs -r $(top_srcdir)/tutorial/tutorial.thrift
|
||||
$(CABAL) build
|
||||
$(CABAL) install
|
||||
|
||||
install-exec-hook:
|
||||
$(CABAL) install
|
||||
@ -37,4 +36,4 @@ tutorialserver: all
|
||||
dist/build/HaskellServer/HaskellServer
|
||||
|
||||
tutorialclient: all
|
||||
dist/build/HaskellClient/HaskellClient
|
||||
dist/build/HaskellClient/HaskellClient
|
||||
|
Loading…
Reference in New Issue
Block a user