Add .travis.yml
This commit is contained in:
parent
ee6674f8ca
commit
883f0966ea
3 changed files with 29 additions and 8 deletions
17
.travis.yml
Normal file
17
.travis.yml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
language: elixir
|
||||||
|
elixir:
|
||||||
|
- 1.7.4
|
||||||
|
- 1.8.2
|
||||||
|
- 1.9.0
|
||||||
|
otp_release:
|
||||||
|
- 20.3
|
||||||
|
- 20.3
|
||||||
|
- 22.0
|
||||||
|
sudo: false
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- _build
|
||||||
|
- deps
|
||||||
|
script:
|
||||||
|
- travis_wait mix dialyzer --plt
|
||||||
|
- mix test
|
|
@ -82,9 +82,11 @@ defmodule Dsl.Tags do
|
||||||
def void_elements, do: @void_elements
|
def void_elements, do: @void_elements
|
||||||
|
|
||||||
for el <- @nonvoid_elements do
|
for el <- @nonvoid_elements do
|
||||||
@doc """
|
@doc (if File.exists?("./tmp/docs/#{el}.txt") do
|
||||||
#{File.read!("./tmp/docs/#{el}.txt")}
|
"""
|
||||||
"""
|
#{File.read!("./tmp/docs/#{el}.txt")}
|
||||||
|
"""
|
||||||
|
end)
|
||||||
defmacro unquote(el)() do
|
defmacro unquote(el)() do
|
||||||
el = unquote(el)
|
el = unquote(el)
|
||||||
|
|
||||||
|
@ -139,9 +141,11 @@ defmodule Dsl.Tags do
|
||||||
end
|
end
|
||||||
|
|
||||||
for el <- @void_elements do
|
for el <- @void_elements do
|
||||||
@doc """
|
@doc (if File.exists?("./tmp/docs/#{el}.txt") do
|
||||||
#{File.read!("./tmp/docs/#{el}.txt")}
|
"""
|
||||||
"""
|
#{File.read!("./tmp/docs/#{el}.txt")}
|
||||||
|
"""
|
||||||
|
end)
|
||||||
|
|
||||||
defmacro unquote(el)(attrs \\ []) do
|
defmacro unquote(el)(attrs \\ []) do
|
||||||
el = unquote(el)
|
el = unquote(el)
|
||||||
|
|
4
mix.exs
4
mix.exs
|
@ -6,11 +6,11 @@ defmodule Dsl.MixProject do
|
||||||
app: :dsl,
|
app: :dsl,
|
||||||
version: "0.1.0",
|
version: "0.1.0",
|
||||||
elixirc_paths: elixirc_paths(Mix.env()),
|
elixirc_paths: elixirc_paths(Mix.env()),
|
||||||
elixir: "~> 1.8",
|
elixir: "~> 1.7",
|
||||||
start_permanent: Mix.env() == :prod,
|
start_permanent: Mix.env() == :prod,
|
||||||
deps: deps(),
|
deps: deps(),
|
||||||
name: "Dsl",
|
name: "Dsl",
|
||||||
source_url: "https://github.com/mhanberg/cogent",
|
source_url: "https://github.com/mhanberg/dsl",
|
||||||
docs: [
|
docs: [
|
||||||
main: "Dsl",
|
main: "Dsl",
|
||||||
extras: ["README.md"],
|
extras: ["README.md"],
|
||||||
|
|
Reference in a new issue