Skip to content

Commit aa2c37c

Browse files
committed
Update build scripts
1 parent 87e59e1 commit aa2c37c

File tree

4 files changed

+7
-43
lines changed

4 files changed

+7
-43
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ 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; 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'
30+
# - julia -e 'mit="ModuleInterfaceTools"; sa="StrAPI"; loc="https://github.com/JuliaString"; if VERSION < v"0.7.0-DEV.5183"; Pkg.clone(pwd()); Pkg.clone("$loc/$sa.jl"); Pkg.checkout(sa, "master"); Pkg.test(mit, 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(sa); Pkg.add(pwd()); Pkg.up(); Pkg.test(; coverage=true); end'
31+
- julia -e 'mit="ModuleInterfaceTools"; sa="StrAPI"; loc="https://github.com/JuliaString"; if VERSION < v"0.7.0-DEV.5183"; Pkg.clone(pwd()); Pkg.clone("$loc/$sa.jl"); Pkg.checkout(sa, "master"); Pkg.test(mit, coverage=true); else; import Pkg; Pkg.add(sa); Pkg.add(pwd()); Pkg.up(); Pkg.test(; coverage=true); end'
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: 0 additions & 21 deletions
This file was deleted.

Project.toml

Lines changed: 0 additions & 14 deletions
This file was deleted.

appveyor.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,13 @@ 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, Pkg);
4444
versioninfo();
45+
mit = \"ModuleInterfaceTools\"; sa = \"StrAPI\"; loc=\"https://github.com/JuliaString\";
4546
if VERSION < v\"0.7.0-DEV.5183\";
46-
Pkg.clone(pwd(), \"ModuleInterfaceTools\");
47-
else;
48-
p = \"Project.toml\"; using UUIDs; sa=\"StrAPI\";
49-
uuid = \"5cb8414e-7aab-5a03-a681-351269c074bf\";
50-
write(p, replace(read(p, String), uuid => uuid4()));
51-
Pkg.clone(\"https://github.com/JuliaString/StrAPI.jl\", sa);
47+
Pkg.clone(pwd(), mit);
48+
Pkg.clone(\"$loc/$sa.jl\", sa);
5249
Pkg.checkout(sa, \"master\");
53-
Pkg.instantiate();
50+
else;
51+
Pkg.add(sa); Pkg.add(pwd()); Pkg.up();
5452
end"
5553

5654
test_script:

0 commit comments

Comments
 (0)