Skip to content

Commit b7531f0

Browse files
committed
Use Pkg package in test scripts
1 parent 731922a commit b7531f0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ build_script:
2525
# Need to convert from shallow to complete for Pkg.clone to work
2626
- IF EXIST .git\shallow (git fetch --unshallow)
2727
- C:\projects\julia\bin\julia -e "versioninfo();
28-
Pkg.clone(pwd(), \"MultipleTesting\"); Pkg.build(\"MultipleTesting\")"
28+
using Pkg; Pkg.clone(pwd(), \"MultipleTesting\"); Pkg.build(\"MultipleTesting\")"
2929

3030
test_script:
31-
- C:\projects\julia\bin\julia --check-bounds=yes -e "Pkg.test(\"MultipleTesting\")"
31+
- C:\projects\julia\bin\julia --check-bounds=yes -e "using Pkg; Pkg.test(\"MultipleTesting\")"

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ notifications:
1818

1919
script:
2020
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
21-
- julia --check-bounds=yes -e 'Pkg.clone(pwd()); Pkg.build("MultipleTesting"); Pkg.test("MultipleTesting"; coverage=true)'
21+
- julia --check-bounds=yes -e 'using Pkg; Pkg.clone(pwd()); Pkg.build("MultipleTesting"); Pkg.test("MultipleTesting"; coverage=true)'
2222

2323
after_success:
24-
- julia -e 'cd(Pkg.dir("MultipleTesting")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder(), flags="julia_$(VERSION.major)_$(VERSION.minor)")'
25-
- julia -e 'cd(Pkg.dir("MultipleTesting")); Pkg.add("Documenter"); include(joinpath("docs", "make.jl"))'
24+
- julia -e 'using Pkg; cd(Pkg.dir("MultipleTesting")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder(), flags="julia_$(VERSION.major)_$(VERSION.minor)")'
25+
- julia -e 'using Pkg; cd(Pkg.dir("MultipleTesting")); Pkg.add("Documenter"); include(joinpath("docs", "make.jl"))'

0 commit comments

Comments
 (0)