Skip to content

Commit 098565c

Browse files
committed
Update testing scripts
1 parent c74f209 commit 098565c

File tree

3 files changed

+26
-11
lines changed

3 files changed

+26
-11
lines changed

.travis.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ git:
1313

1414
## uncomment the following lines to allow failures on nightly julia
1515
## (tests will run but not make your overall status red)
16-
#matrix:
17-
# allow_failures:
18-
# - julia: nightly
16+
matrix:
17+
allow_failures:
18+
- julia: nightly
1919

2020
## uncomment and modify the following lines to manually install system packages
2121
#addons:
@@ -27,7 +27,15 @@ git:
2727

2828
## uncomment the following lines to override the default test script
2929
script:
30-
- julia -e 'if VERSION < v"0.7.0-DEV.5183" ; Pkg.clone(pwd()) ; else ; using Pkg; Pkg.add(pwd()) ; end ; Pkg.test("ModuleInterfaceTools"; coverage=true)'
30+
- julia -e '
31+
if VERSION < v"0.7.0-DEV.5183";
32+
Pkg.clone(pwd());
33+
Pkg.test("ModuleInterfaceTools", coverage=true);
34+
else;
35+
using UUIDs; import Pkg; p = "Project.toml"; uuid = "5cb8414e-7aab-5a03-a681-351269c074bf";
36+
write(p, replace(read(p, String), uuid => uuid4()));
37+
Pkg.instantiate(); Pkg.test(; coverage=true);
38+
end'
3139
after_success:
3240
# push coverage results to Coveralls
3341
- julia -e 'cd(Pkg.dir("ModuleInterfaceTools")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'

Project.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "ModuleInterfaceTools"
2-
uuid = "5cb8414e-7aab-5a03-a681-351269c074bf"
2+
uuid = "57012a8c-f217-493e-9761-d906ce7698cb"
33
keywords = ["package", "module", "API"]
44
license = "MIT"
55
desc = "Tools to help build a consistent API across various packages, use it, and enquire about it"
@@ -8,3 +8,4 @@ authors = ["ScottPJones <[email protected]>"]
88
[deps]
99
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
1010
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
11+
APITest = "999adbfa-7dca-48e3-8844-41bde97b6280"

appveyor.yml

+12-6
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ environment:
77

88
## uncomment the following lines to allow failures on nightly julia
99
## (tests will run but not make your overall status red)
10-
#matrix:
11-
# allow_failures:
12-
# - JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
13-
# - JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
10+
matrix:
11+
allow_failures:
12+
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
13+
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
1414

1515
branches:
1616
only:
@@ -42,8 +42,14 @@ build_script:
4242
- IF EXIST .git\shallow (git fetch --unshallow)
4343
- C:\projects\julia\bin\julia -e "VERSION < v\"0.7.0-DEV\" || (using InteractiveUtils);
4444
versioninfo();
45-
if VERSION < v\"0.7.0-DEV.5183\"; Pkg.clone(pwd(), \"ModuleInterfaceTools\");
46-
else; using Pkg; Pkg.add(pwd()); Pkg.up(); end"
45+
if VERSION < v\"0.7.0-DEV.5183\";
46+
Pkg.clone(pwd(), \"ModuleInterfaceTools\");
47+
else;
48+
p = \"Project.toml\"; using UUIDs;
49+
uuid = \"5cb8414e-7aab-5a03-a681-351269c074bf\";
50+
write(p, replace(read(p, String), uuid => uuid4()));
51+
using Pkg; Pkg.instantiate();
52+
end"
4753

4854
test_script:
4955
- C:\projects\julia\bin\julia -e "VERSION < v\"0.7.0-DEV\" || (using Pkg); Pkg.test(\"ModuleInterfaceTools\")"

0 commit comments

Comments
 (0)