Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Haskell: Run cabal update before running any other scripts #28

Merged
merged 1 commit into from Aug 8, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/travis/build/job/test/haskell.rb
Expand Up @@ -10,10 +10,11 @@ def setup
super super
announce_ghc announce_ghc
announce_cabal announce_cabal
cabal_update
end end


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


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

def cabal_update
shell.execute("cabal update")
end
end end
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 describe 'install' do
it "uses cabal" do it "uses cabal" do
job.install.should == "cabal update && cabal install --enable-tests" job.install.should == "cabal install --enable-tests"
end end
end end


Expand Down