Skip to content

Commit

Permalink
Build deps latest releases and master branches
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach committed Mar 18, 2016
1 parent 717332f commit ffb2852
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ elixir: 1.2.1
otp_release:
- 18.0
sudo: false
env:
- DEPS=latest
- DEPS=master
matrix:
allow_failures:
- env: DEPS=master
before_script:
- mix deps.get --only test
script:
Expand Down
10 changes: 8 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defmodule PhoenixEcto.Mixfile do
[app: :phoenix_ecto,
version: @version,
elixir: "~> 1.2",
deps: deps,
deps: deps(System.get_env("DEPS") || "latest"),

# Hex
description: "Integration between Phoenix & Ecto",
Expand All @@ -29,9 +29,15 @@ defmodule PhoenixEcto.Mixfile do
links: %{"GitHub" => "https://github.com/phoenixframework/phoenix_ecto"}]
end

defp deps do
defp deps("latest") do
[{:phoenix_html, "~> 2.5", optional: true},
{:poison, "~> 1.5 or ~> 2.0", optional: true},
{:ecto, "~> 2.0-beta"}]
end

defp deps("master") do
[{:phoenix_html, "~> 2.5", optional: true},
{:poison, "~> 1.5 or ~> 2.0", optional: true},
{:ecto, "~> 2.0-beta", github: "elixir-lang/ecto"}]
end
end
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%{"decimal": {:hex, :decimal, "1.1.1"},
"ecto": {:hex, :ecto, "2.0.0-beta.0"},
"ecto": {:hex, :ecto, "2.0.0-beta.2"},
"phoenix_html": {:hex, :phoenix_html, "2.5.0"},
"plug": {:hex, :plug, "1.1.1"},
"poison": {:hex, :poison, "2.1.0"},
Expand Down

0 comments on commit ffb2852

Please sign in to comment.