Skip to content

Commit

Permalink
Experiment with conditinonally running coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Apr 6, 2017
1 parent ffa6eda commit 7623ff2
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ environment:
matrix:
- JULIAVERSION: "julialang/bin/winnt/x86/0.4/julia-0.4-latest-win32.exe"
- JULIAVERSION: "julialang/bin/winnt/x64/0.4/julia-0.4-latest-win64.exe"
# - JULIAVERSION: "julialang/bin/winnt/x86/0.5/julia-0.5-latest-win32.exe"
# - JULIAVERSION: "julialang/bin/winnt/x64/0.5/julia-0.5-latest-win64.exe"
- JULIAVERSION: "julialang/bin/winnt/x86/0.5/julia-0.5-latest-win32.exe"
- JULIAVERSION: "julialang/bin/winnt/x64/0.5/julia-0.5-latest-win64.exe"
# - JULIAVERSION: "julialang/bin/winnt/x86/0.6/julia-0.6-latest-win32.exe"
# - JULIAVERSION: "julialang/bin/winnt/x64/0.6/julia-0.6-latest-win64.exe"
# - JULIAVERSION: "julianightlies/bin/winnt/x86/julia-latest-win32.exe"
Expand Down Expand Up @@ -40,16 +40,23 @@ build_script:
Pkg.clone(pwd(), \"TimeZones\"); Pkg.build(\"TimeZones\")"

test_script:
- C:\projects\julia\bin\julia -e "Pkg.test(\"TimeZones\", coverage=true)"
- IF NOT x%JULIAVERSION:0.4=%==x%JULIAVERSION% (
C:\projects\julia\bin\julia -e "Pkg.test(\"TimeZones\", coverage=true)"
) ELSE (
C:\projects\julia\bin\julia -e "Pkg.test(\"TimeZones\")"
)

after_test:
- C:\projects\julia\bin\julia -e "cd(Pkg.dir(\"TimeZones\")); Pkg.add(\"Coverage\"); Pkg.add(\"URIParser\"); using Coverage, URIParser;
Codecov.submit_generic(process_folder(),
service=\"appveyor\",
branch=ENV[\"APPVEYOR_REPO_BRANCH\"],
commit=ENV[\"APPVEYOR_REPO_COMMIT\"],
pull_request=get(ENV, \"APPVEYOR_PULL_REQUEST_NUMBER\", \"\"),
job=escape(join([ENV[\"APPVEYOR_ACCOUNT_NAME\"], ENV[\"APPVEYOR_PROJECT_SLUG\"], ENV[\"APPVEYOR_BUILD_VERSION\"]], '/')),
slug=ENV[\"APPVEYOR_REPO_NAME\"],
build=escape(ENV[\"APPVEYOR_JOB_ID\"]),
)"
- IF NOT x%JULIAVERSION:0.4=%==x%JULIAVERSION% (
C:\projects\julia\bin\julia -e "
cd(Pkg.dir(\"TimeZones\")); Pkg.add(\"Coverage\"); Pkg.add(\"URIParser\"); using Coverage, URIParser;
Codecov.submit_generic(process_folder(),
service=\"appveyor\",
branch=ENV[\"APPVEYOR_REPO_BRANCH\"],
commit=ENV[\"APPVEYOR_REPO_COMMIT\"],
pull_request=get(ENV, \"APPVEYOR_PULL_REQUEST_NUMBER\", \"\"),
job=escape(join([ENV[\"APPVEYOR_ACCOUNT_NAME\"], ENV[\"APPVEYOR_PROJECT_SLUG\"], ENV[\"APPVEYOR_BUILD_VERSION\"]], '/')),
slug=ENV[\"APPVEYOR_REPO_NAME\"],
build=escape(ENV[\"APPVEYOR_JOB_ID\"]),
)"
)

0 comments on commit 7623ff2

Please sign in to comment.