Skip to content

Commit 87e59e1

Browse files
committed
Update for unit tests
1 parent 9253802 commit 87e59e1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ matrix:
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()); Pkg.test("ModuleInterfaceTools", coverage=true); else; using UUIDs; import Pkg; p = "Project.toml"; uuid = "5cb8414e-7aab-5a03-a681-351269c074bf"; write(p, replace(read(p, String), uuid => uuid4())); Pkg.add(pwd()); Pkg.instantiate(); Pkg.test(; coverage=true); end'
30+
- julia -e 'if VERSION < v"0.7.0-DEV.5183"; Pkg.clone(pwd()); Pkg.test("ModuleInterfaceTools", coverage=true); else; sa = "StrAPI"; using UUIDs; import Pkg; p = "Project.toml"; uuid = "5cb8414e-7aab-5a03-a681-351269c074bf"; write(p, replace(read(p, String), uuid => uuid4())); Pkg.add(pwd()); Pkg.clone("https://github.com/JuliaString/$sa.jl"); Pkg.instantiate(); Pkg.test(; coverage=true); end'
3131
after_success:
3232
# push coverage results to Coveralls
3333
- julia -e 'cd(Pkg.dir("ModuleInterfaceTools")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'

appveyor.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,17 @@ install:
4040
build_script:
4141
# Need to convert from shallow to complete for Pkg.clone to work
4242
- IF EXIST .git\shallow (git fetch --unshallow)
43-
- C:\projects\julia\bin\julia -e "VERSION < v\"0.7.0-DEV\" || (using InteractiveUtils);
43+
- C:\projects\julia\bin\julia -e "VERSION < v\"0.7.0-DEV\" || (using InteractiveUtils, Pkg);
4444
versioninfo();
4545
if VERSION < v\"0.7.0-DEV.5183\";
4646
Pkg.clone(pwd(), \"ModuleInterfaceTools\");
4747
else;
48-
p = \"Project.toml\"; using UUIDs;
48+
p = \"Project.toml\"; using UUIDs; sa=\"StrAPI\";
4949
uuid = \"5cb8414e-7aab-5a03-a681-351269c074bf\";
5050
write(p, replace(read(p, String), uuid => uuid4()));
51-
using Pkg; Pkg.instantiate();
51+
Pkg.clone(\"https://github.com/JuliaString/StrAPI.jl\", sa);
52+
Pkg.checkout(sa, \"master\");
53+
Pkg.instantiate();
5254
end"
5355

5456
test_script:

0 commit comments

Comments
 (0)