Skip to content

Commit

Permalink
integrate travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wavewave committed Mar 6, 2013
1 parent f0ebc91 commit 0d1773f
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/dist
/deps
/trash

8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: haskell

env:
global:
secure: "mwW5kGvOQ/QqQTESaaIu1FRLiN7ZOXFTK0YnTCxe5c9jtjK21cqnwf/v961R\nhIhWCu7niN5GpxGFRfJsT22mVqYmTf95UGk/nOoZ+UmEHaLWCoYnnVAXsErS\nXWmb63qRbPnVLoytSmkNWnGVCLtJV823tjnm2iUqAmU7WNy2i2s="

install: sh ./builddep.sh

18 changes: 18 additions & 0 deletions build.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
build {
srcbase = "./deps"
gitrepobase = "https://github.com/wavewave"
}


projects = [ "conduit-util"
, "LHCOAnalysis-type"
, "HEPUtil"
, "LHEParser"
, "LHE-sanitizer"
, "madgraph-auto"
, "madgraph-auto-model"
, "webdav-manager"
]



32 changes: 32 additions & 0 deletions builddep.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash

sudo apt-get install libblas-dev liblapack-dev libgsl0-dev gfortran
cabal install transformers
cabal install hscolour
cabal install hmatrix

mkdir deps
git clone https://github.com/wavewave/devadmin.git deps/devadmin
cd deps/devadmin ; cabal install --force-reinstalls ; cd ../../
$HOME/.cabal/bin/build cloneall --config=build.conf

# for dep installation
$HOME/.cabal/bin/build bootstrap --config=build.conf

# for documentation of dep packages
$HOME/.cabal/bin/build haddockboot --config=build.conf

# for documentation of this package
cabal install --enable-documentation
cabal haddock --hyperlink-source
cabal copy


# upload documentation
tar cvzf evchain.tar.gz $HOME/.cabal/share/doc/evchain* $HOME/.cabal/share/doc/madgraph-auto* $HOME/.cabal/share/doc/LHE* $HOME/.cabal/share/doc/HEPUtil* $HOME/.cabal/share/doc/LHCOAnalysis*
echo $CR | curl --digest -T evchain.tar.gz -K - $SRVRURL

# this is needed for checking
cabal install --enable-tests


0 comments on commit 0d1773f

Please sign in to comment.