-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_devhistory.jl
More file actions
53 lines (45 loc) · 1.13 KB
/
_devhistory.jl
File metadata and controls
53 lines (45 loc) · 1.13 KB
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
# Initial set up & test
using Pkg
Pkg.generate("EcoNetDynOutputs")
Pkg.activate(".")
import EcoNetDynOutputs
EcoNetDynOutputs.greet()
# Set dependencies
#Pkg.add("EcologicalNetworksDynamics")
Pkg.develop(; path = "../EcologicalNetworksDynamics.jl/")
# Set public API in EcoNetDynOutputs.jl
# https://pkgdocs.julialang.org/v1/creating-packages/#Defining-a-public-API
# Adding a build step to the package
mkpath("deps")
write(
"deps/build.jl",
"""
println("I am being built...")
""",
)
## Building the package
Pkg.build()
print(readchomp("deps/build.log"))
# Add test
mkpath("test")
write(
"test/runtests.jl",
"""
println("Testing...")
""",
);
## Run the test
Pkg.test()
# Set up Licence
download(
"https://raw.githubusercontent.com/econetoolbox/EcologicalNetworksDynamics.jl/refs/heads/main/LICENSE",
"LICENCE",
)
# Set up documentation
using DocumenterTools
Pkg.activate(".")
DocumenterTools.generate("docs"; name = "EcoNetDynOutputs", format = :html)
Pkg.activate("./docs/")
Pkg.add("Documenter")
Pkg.develop(; path = "../EcoNetDynOutputs.jl/")
Pkg.develop(; path = "../EcologicalNetworksDynamics.jl/")