Skip to content

Commit

Permalink
Update REQUIRE and use Pkg3 on v0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottPJones committed Jun 6, 2018
1 parent 66af4a9 commit ea0413a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ git:
# uncomment the following lines to override the default test script
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia -e 'if VERSION < v"0.7.0-DEV.5183"; Pkg.clone(pwd()); else; using Pkg; Pkg.up(); end; Pkg.test("StrFormat"; coverage=true)'
- julia -e 'if VERSION < v"0.7.0-DEV.5183"; Pkg.clone(pwd()); else; using Pkg; Pkg.up(); l=("ChrBase", "StrBase", "StrLiterals"); for n in l; Pkg.rm(n); end; Pkg.add(["https://github.com/JuliaString/$n.jl" for n in l]); Pkg.add(pwd()); end; Pkg.test("StrFormat"; coverage=true)'
after_success:
# push coverage results to Coveralls
- julia -e 'cd(Pkg.dir("StrFormat")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
- julia -e 'VERSION < v"0.7.0-DEV" || (using Pkg); cd(Pkg.dir("StrFormat")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
# push coverage results to Codecov
- julia -e 'cd(Pkg.dir("StrFormat")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
- julia -e 'VERSION < v"0.7.0-DEV" || (using Pkg); cd(Pkg.dir("StrFormat")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
File renamed without changes.
10 changes: 8 additions & 2 deletions REQUIRE
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
julia 0.6
Format
StrLiterals
Format 0.6.4
ModuleInterfaceTools 0.1.2
StrAPI 0.1.1
CharSetEncodings 0.1.1
ChrBase 0.1.1
MurmurHash3 0.1.2
StrBase 0.1.1
StrLiterals 0.1.0
9 changes: 7 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ build_script:
- C:\projects\julia\bin\julia -e "VERSION < v\"0.7.0-DEV\" || (using InteractiveUtils);
versioninfo();
if VERSION < v\"0.7.0-DEV.5183\"; Pkg.clone(pwd(), \"StrFormat\");
else; using Pkg; Pkg.up(); end"
else; using Pkg; Pkg.up();
l = ("ChrBase", "StrBase", "StrLiterals");
for n in l; Pkg.rm(n); end;
Pkg.add(["https://github.com/JuliaString/$n.jl" for n in l]);
Pkg.add(pwd());
end"

test_script:
- C:\projects\julia\bin\julia -e "Pkg.test(\"StrFormat\")"
- C:\projects\julia\bin\julia -e "VERSION < v\"0.7.0-DEV\" || (using Pkg); Pkg.test(\"StrFormat\")"
2 changes: 2 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

using ModuleInterfaceTools, Format

@static V6_COMPAT || (using Pkg)

@api test StrAPI, StrLiterals

using StrFormat
Expand Down

0 comments on commit ea0413a

Please sign in to comment.