Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Merged
merged 1 commit into from

3 participants

@sol
sol commented

No description provided.

@travisbot

This pull request passes (merged 941998f into c142f8d).

@michaelklishin michaelklishin merged commit 177babd into travis-ci:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
7 lib/travis/build/job/test/haskell.rb
@@ -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
@@ -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
View
2  spec/build/job/test/haskell_spec.rb
@@ -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
Something went wrong with that request. Please try again.