Skip to content

Commit 34f7b44

Browse files
committed
Updates to travis, build both 0.7 and nightly
1 parent 7a82e4b commit 34f7b44

File tree

5 files changed

+180
-9
lines changed

5 files changed

+180
-9
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ os:
55
- osx
66
julia:
77
- 0.6
8+
- 0.7
89
- nightly
910
notifications:
1011
email: false
@@ -27,7 +28,7 @@ git:
2728

2829
## uncomment the following lines to override the default test script
2930
script:
30-
- julia -e 'mit="ModuleInterfaceTools"; if VERSION < v"0.7.0-DEV.5183"; Pkg.clone(pwd()); Pkg.test(mit; coverage=true); else; import Pkg; using UUIDs; p = "Project.toml"; uuid = "5cb8414e-7aab-5a03-a681-351269c074bf"; write(p, replace(read(p, String), uuid => uuid4())); Pkg.up(); Pkg.test(;coverage=true); end'
31+
- julia -e 'mit="ModuleInterfaceTools"; if VERSION < v"0.7.0-DEV.5183"; Pkg.clone(pwd()); Pkg.test(mit; coverage=true); else; import Pkg; using UUIDs; p = "Project.toml"; uuid = "5cb8414e-7aab-5a03-a681-351269c074bf"; write(p, replace(read(p, String), uuid => uuid4())); Pkg.update(); end; Pkg.test(;coverage=true)'
3132
after_success:
3233
# push coverage results to Coveralls
3334
- julia -e 'cd(Pkg.dir("ModuleInterfaceTools")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'

Manifest.toml

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,179 @@
1+
[[Base64]]
2+
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
3+
4+
[[BinDeps]]
5+
deps = ["Compat", "Libdl", "SHA", "URIParser"]
6+
git-tree-sha1 = "160d5d926e83e0970dd549ad9fe0ac3e8107e83c"
7+
uuid = "9e28174c-4ba2-5203-b857-d8d62c4213ee"
8+
version = "0.8.8"
9+
10+
[[BufferedStreams]]
11+
deps = ["Compat", "Pkg", "Test"]
12+
git-tree-sha1 = "260922227fa4affdce57c59063fabf33a324d50e"
13+
uuid = "e1450e63-4bb3-523b-b2a4-4ffa8c0fd77d"
14+
version = "0.4.0"
15+
16+
[[Compat]]
17+
deps = ["Base64", "Dates", "DelimitedFiles", "Distributed", "InteractiveUtils", "LibGit2", "Libdl", "LinearAlgebra", "Markdown", "Mmap", "Pkg", "Printf", "REPL", "Random", "Serialization", "SharedArrays", "Sockets", "SparseArrays", "Test", "UUIDs", "Unicode"]
18+
git-tree-sha1 = "f3e87ca1e2df8e1e4f82ea504fddf0b9b0894f61"
19+
uuid = "34da2185-b29b-5c13-b0c7-acf172513d20"
20+
version = "0.69.0"
21+
122
[[Dates]]
223
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a"
324

25+
[[DelimitedFiles]]
26+
uuid = "8bb1440f-4735-579b-a4ab-409b98df4dab"
27+
28+
[[Distributed]]
29+
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b"
30+
31+
[[Emoji_Entities]]
32+
deps = ["InteractiveUtils", "JSON", "Pkg", "StrTables", "Test"]
33+
git-tree-sha1 = "c0f35d6b5e351fdb2358dc25187d9aff82b24c15"
34+
uuid = "fd8f23de-bd2f-5c75-921c-0c9ab51355f5"
35+
version = "0.2.4"
36+
37+
[[Format]]
38+
deps = ["Compat", "InteractiveUtils"]
39+
git-tree-sha1 = "9ad515cebcfc4bb4b04ae41dc5f2cbe857300623"
40+
uuid = "1fa38f19-a742-5d3f-a2b9-30dd87b9d5f8"
41+
version = "0.6.4"
42+
43+
[[HTML_Entities]]
44+
deps = ["InteractiveUtils", "Pkg", "StrTables", "Test"]
45+
git-tree-sha1 = "d0076ca9d51e7d6ff4c1d65e7e83239d0262e4c1"
46+
uuid = "7693890a-d069-55fe-a829-b4a6d304f0ee"
47+
version = "0.2.4"
48+
49+
[[HTTPClient]]
50+
deps = ["Compat", "LibCURL"]
51+
git-tree-sha1 = "161d5776ae8e585ac0b8c20fb81f17ab755b3671"
52+
uuid = "0862f596-cf2d-50af-8ef4-f2be67dfa83f"
53+
version = "0.2.1"
54+
455
[[InteractiveUtils]]
556
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
657

58+
[[JSON]]
59+
deps = ["Compat", "Nullables", "Sockets", "Unicode"]
60+
git-tree-sha1 = "e2f6776e8bfd310b2ade13fba1faf99d8967d58f"
61+
uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
62+
version = "0.17.2"
63+
64+
[[LaTeX_Entities]]
65+
deps = ["InteractiveUtils", "LightXML", "Pkg", "StrTables", "Test"]
66+
git-tree-sha1 = "e78a8240b2c8e0c9e8de3f64a379e811a519901d"
67+
uuid = "9927f19a-46ce-5bdd-a20a-f46a78b61e3d"
68+
version = "0.2.4"
69+
70+
[[LibCURL]]
71+
deps = ["BinDeps", "Compat", "Libdl", "WinRPM"]
72+
git-tree-sha1 = "9b431bc66757ad5124f4d206c319996a2dfa2662"
73+
uuid = "b27032c2-a3e7-50c8-80cd-2d36dbcbfd21"
74+
version = "0.2.2"
75+
76+
[[LibExpat]]
77+
deps = ["Compat"]
78+
git-tree-sha1 = "8ba2ca1635ec1755bcf1432c9a2aa6c91a3fb4fd"
79+
uuid = "522f3ed2-3f36-55e3-b6df-e94fee9b0c07"
80+
version = "0.4.2"
81+
82+
[[LibGit2]]
83+
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"
84+
85+
[[Libdl]]
86+
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
87+
88+
[[Libz]]
89+
deps = ["BufferedStreams", "Compat"]
90+
git-tree-sha1 = "501a8a5b0c500c3a04adb65a3468e3de5ad4e0d9"
91+
uuid = "2ec943e9-cfe8-584d-b93d-64dcb6d567b7"
92+
version = "0.2.4"
93+
94+
[[LightXML]]
95+
deps = ["Compat", "WinRPM"]
96+
git-tree-sha1 = "06ff5861b4e8f2f510c29687fa753a8bbef8a2cd"
97+
uuid = "9c8b4983-aa76-5018-a973-4c85ecc9e179"
98+
version = "0.6.0"
99+
100+
[[LinearAlgebra]]
101+
uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
102+
103+
[[Markdown]]
104+
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
105+
106+
[[Mmap]]
107+
uuid = "a63ad114-7e13-5084-954f-fe012c677804"
108+
109+
[[Nullables]]
110+
deps = ["Compat"]
111+
git-tree-sha1 = "23258f849603ad4fed3ce7dbcb8c0658920fa5ef"
112+
uuid = "4d1e1d77-625e-5b40-9113-a560ec7a8ecd"
113+
version = "0.0.5"
114+
7115
[[Pkg]]
8116
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
9117

118+
[[Printf]]
119+
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7"
120+
121+
[[REPL]]
122+
uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
123+
124+
[[Random]]
125+
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
126+
127+
[[SHA]]
128+
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
129+
130+
[[Serialization]]
131+
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
132+
133+
[[SharedArrays]]
134+
uuid = "1a1011a3-84de-559e-8e89-a11a2f7dc383"
135+
136+
[[Sockets]]
137+
uuid = "6462fe0b-24de-5631-8697-dd941f90decc"
138+
139+
[[SparseArrays]]
140+
uuid = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
141+
10142
[[StrTables]]
11143
deps = ["Dates", "InteractiveUtils", "Pkg", "Test"]
12144
git-tree-sha1 = "56e259bdbcf08215f567771c765b8d93b6bbdf42"
13145
uuid = "9700d1a9-a7c8-5760-9816-a99fda30bb8f"
14146
version = "0.2.4"
15147

148+
[[StringLiterals]]
149+
deps = ["Emoji_Entities", "Format", "HTML_Entities", "LaTeX_Entities", "StrTables", "Test", "Unicode_Entities"]
150+
git-tree-sha1 = "dfc1c5b232b26692ad0dddf32f1e7402360acfd5"
151+
uuid = "8f8e9dd7-1da5-502a-9ec1-434721d5fc53"
152+
version = "0.3.0"
153+
16154
[[Test]]
17155
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
156+
157+
[[URIParser]]
158+
deps = ["Compat", "Unicode"]
159+
git-tree-sha1 = "0f9c5e2d14e03fbd00696f9394e288bdd5adacbc"
160+
uuid = "30578b45-9adc-5946-b283-645ec420af67"
161+
version = "0.3.1"
162+
163+
[[UUIDs]]
164+
uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
165+
166+
[[Unicode]]
167+
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
168+
169+
[[Unicode_Entities]]
170+
deps = ["InteractiveUtils", "Pkg", "StrTables", "Test", "Unicode"]
171+
git-tree-sha1 = "d08e288e668c6ef96eeb10ebaf58e5544e6a78b4"
172+
uuid = "a8aa15d3-c567-5e9f-b6cc-4b0f97f09cf7"
173+
version = "0.2.4"
174+
175+
[[WinRPM]]
176+
deps = ["BinDeps", "Compat", "HTTPClient", "LibExpat", "Libdl", "Libz", "SHA", "URIParser"]
177+
git-tree-sha1 = "43730fcfe2f4921e7cfe1c21a6fdfeabb7ee4d74"
178+
uuid = "c17dfb99-b4f7-5aad-8812-456da1ad7187"
179+
version = "0.3.2"

Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ keywords = ["Packages", "API", "Modules"]
44
license = "MIT"
55
desc = "Macro to help manage module and package APIs"
66
authors = ["ScottPJones <[email protected]>"]
7-
version = "0.1.4"
7+
version = "0.1.5"
88

99
[deps]
10+
Format = "1fa38f19-a742-5d3f-a2b9-30dd87b9d5f8"
1011
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
1112
StrTables = "9700d1a9-a7c8-5760-9816-a99fda30bb8f"
13+
StringLiterals = "8f8e9dd7-1da5-502a-9ec1-434721d5fc53"
1214
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

appveyor.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ environment:
22
matrix:
33
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.6/julia-0.6-latest-win32.exe"
44
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.6/julia-0.6-latest-win64.exe"
5+
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.6/julia-0.7-latest-win32.exe"
6+
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.6/julia-0.7-latest-win64.exe"
57
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
68
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
79

@@ -37,12 +39,12 @@ install:
3739
# Run installer silently, output to C:\projects\julia
3840
- C:\projects\julia-binary.exe /S /D=C:\projects\julia
3941

40-
build_script:
4142
# Need to convert from shallow to complete for Pkg.clone to work
43+
build_script:
4244
- IF EXIST .git\shallow (git fetch --unshallow)
4345
- C:\projects\julia\bin\julia -e "VERSION < v\"0.7.0-DEV\" || (using InteractiveUtils, Pkg);
4446
versioninfo(); mit = \"ModuleInterfaceTools\";
45-
if VERSION < v\"0.7.0-DEV.5183\"; Pkg.clone(pwd(), mit); else; Pkg.up(); end"
47+
if VERSION < v\"0.7.0-DEV.5183\"; Pkg.clone(pwd(), mit); else; pkg\"up\"; end"
4648

4749
test_script:
4850
- C:\projects\julia\bin\julia -e "VERSION < v\"0.7.0-DEV\" || (using Pkg); push!(LOAD_PATH, \"test\"); Pkg.test(\"ModuleInterfaceTools\")"

src/ModuleInterfaceTools.jl

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ end
114114
* public! <names...> # Add functions that are part of the public API (extendible)
115115
* develop <names...> # Add other symbols that are part of the development API
116116
* develop! <names...> # Add functions that are part of the development API (extendible)
117+
* define! <names...> # Define functions to be extended, public API
118+
* defdev! <names...> # Define functions to be extended, develop API
117119
* modules <names...> # Add submodule names that are part of the API
118120
119121
* path <paths...> # Add paths to LOAD_PATH
@@ -183,13 +185,15 @@ function _add_def!(curmod, grp, exp)
183185
else
184186
error("@api $grp: syntax error $exp")
185187
end
186-
if isdefined(Base, sym)
188+
if grp == :base! && isdefined(Base, sym)
187189
m_eval(curmod, :(import Base.$sym ))
188190
m_eval(curmod, :(push!(__tmp_api__.base, $(QuoteNode(sym)))))
189-
else
190-
m_eval(curmod, :(function $sym end))
191-
m_eval(curmod, :(push!(__tmp_api__.public!, $(QuoteNode(sym)))))
191+
return
192192
end
193+
m_eval(curmod, :(function $sym end))
194+
m_eval(curmod, (grp == :defdev!
195+
? :(push!(__tmp_api__.develop!, $(QuoteNode(sym))))
196+
: :(push!(__tmp_api__.public!, $(QuoteNode(sym))))))
193197
end
194198

195199
function push_args!(symbols, lst, grp)
@@ -220,7 +224,7 @@ function _add_symbols(curmod, grp, exprs)
220224
println()
221225
end
222226
_init_api(curmod)
223-
if grp == :base!
227+
if grp == :base! || grp == :define! || grp == :defdev!
224228
for ex in exprs
225229
if isa(ex, Expr) && ex.head == :tuple
226230
for sym in ex.args

0 commit comments

Comments
 (0)