Skip to content

Commit

Permalink
Merge pull request #28 from sol/master
Browse files Browse the repository at this point in the history
Haskell: Run `cabal update` before running any other scripts
  • Loading branch information
Michael Klishin committed Aug 8, 2012
2 parents c142f8d + 941998f commit 177babd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion lib/travis/build/job/test/haskell.rb
Expand Up @@ -10,10 +10,11 @@ def setup
super
announce_ghc
announce_cabal
cabal_update
end

def install
"cabal update && cabal install --enable-tests"
"cabal install --enable-tests"
end

def script
Expand All @@ -29,6 +30,10 @@ def announce_ghc
def announce_cabal
shell.execute("cabal --version")
end

def cabal_update
shell.execute("cabal update")
end
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/build/job/test/haskell_spec.rb
Expand Up @@ -10,7 +10,7 @@

describe 'install' do
it "uses cabal" do
job.install.should == "cabal update && cabal install --enable-tests"
job.install.should == "cabal install --enable-tests"
end
end

Expand Down

0 comments on commit 177babd

Please sign in to comment.