-
Notifications
You must be signed in to change notification settings - Fork 14
/
mix.exs
140 lines (129 loc) · 3.4 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
defmodule Genex.MixProject do
use Mix.Project
@version "1.0.1-beta"
@url "https://www.github.com/seanmor5/genex"
@maintainers ["Sean Moriarity"]
def project do
[
name: "Genex",
app: :genex,
version: @version,
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
source_url: @url,
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
maintainers: @maintainers,
homepage_url: @url,
description: description(),
docs: docs(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def application do
[
extra_applications: [:table_rex]
]
end
def docs do
[
source_ref: "v#{@version}",
extra_section: "guides",
formatters: ["html", "epub"],
groups_for_modules: groups_for_modules(),
extras: extras(),
groups_for_extras: groups_for_extras()
]
end
defp extras do
[]
end
defp groups_for_extras do
[
Introduction: Path.wildcard("guides/introduction/*.md"),
Operators: Path.wildcard("guides/operators/*.md"),
Evolutions: Path.wildcard("guides/evolutions/*.md"),
Support: Path.wildcard("guides/support/*.md"),
Tutorials: Path.wildcard("guides/tutorials/*.md")
]
end
defp groups_for_modules do
[
"Genetic Operators": [
Genex.Tools.Crossover,
Genex.Tools.Migration,
Genex.Tools.Mutation,
Genex.Tools.Selection
],
"Solution Representations": [
Genex.Tools.Datatype,
Genex.Tools.Genotype
],
Evolutions: [
Genex.Evolution,
Genex.Evolution.Coevolution,
Genex.Evolution.GenerateUpdate,
Genex.Evolution.MuCommaLambda,
Genex.Evolution.MuPlusLambda,
Genex.Evolution.Simple
],
Benchmarks: [
Genex.Tools.Benchmarks.Binary,
Genex.Tools.Benchmarks.MultiObjectiveContinuous,
Genex.Tools.Benchmarks.SingleObjectiveContinuous,
Genex.Tools.Benchmarks.SymbolicRegression
],
"Evaluation Tools": [
Genex.Tools.Evaluation,
Genex.Tools.Evaluation.Indicator,
Genex.Tools.Evaluation.Penalty
],
Support: [
Genex.Support.Checkpoint,
Genex.Support.Genealogy,
Genex.Support.HallOfFame,
Genex.Support.Logbook
],
Structures: [
Genex.Types.Chromosome,
Genex.Types.Community,
Genex.Types.Population
],
Visualizations: [
Genex.Visualizer
]
]
end
defp deps do
[
{:credo, "~> 1.0.0", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.21", only: :dev, runtime: false},
{:excoveralls, "~> 0.10", only: :test},
{:table_rex, "~> 2.0.0"},
{:benchee, "~> 1.0"},
{:libgraph, "~> 0.13.0"},
{:statistics, "~> 0.6.2"}
]
end
defp description do
"Genex makes it easy to write Evolutionary Algorithms in Elixir."
end
defp package do
[
maintainers: @maintainers,
name: "genex",
licenses: ["Apache-2.0"],
links: %{"GitHub" => "http://www.github.com/seanmor5/genex"}
]
end
end