Update templates, since a Mustache bug is fixed
This commit is contained in:
parent
ab261170ef
commit
c74ee42ca8
@ -36,8 +36,14 @@ build_script:
|
||||
- C:\projects\julia\bin\julia -e "versioninfo(); Pkg.clone(pwd(), \"{{PKGNAME}}\"); Pkg.build(\"{{PKGNAME}}\")"
|
||||
|
||||
test_script:
|
||||
- C:\projects\julia\bin\julia -e "Pkg.test(\"{{PKGNAME}}\"{{#AFTER}}; coverage=true{{/AFTER}})"{{#AFTER}}
|
||||
- C:\projects\julia\bin\julia -e "Pkg.test(\"{{PKGNAME}}\"{{#AFTER}}; coverage=true{{/AFTER}})"
|
||||
{{#AFTER}}
|
||||
|
||||
after_test:{{#CODECOV}}
|
||||
- C:\projects\julia\bin\julia -e "cd(Pkg.dir(\"{{PKGNAME}}\")); Pkg.add(\"Coverage\"); using Coverage; Codecov.submit(process_folder())"{{/CODECOV}}{{#COVERALLS}}
|
||||
- C:\projects\julia\bin\julia -e "cd(Pkg.dir(\"{{PKGNAME}}\")); Pkg.add(\"Coverage\"); using Coverage; Coveralls.submit(process_folder())"{{/COVERALLS}}{{/AFTER}}
|
||||
after_test:
|
||||
{{#CODECOV}}
|
||||
- C:\projects\julia\bin\julia -e "cd(Pkg.dir(\"{{PKGNAME}}\")); Pkg.add(\"Coverage\"); using Coverage; Codecov.submit(process_folder())"
|
||||
{{/CODECOV}}
|
||||
{{#COVERALLS}}
|
||||
- C:\projects\julia\bin\julia -e "cd(Pkg.dir(\"{{PKGNAME}}\")); Pkg.add(\"Coverage\"); using Coverage; Coveralls.submit(process_folder())"
|
||||
{{/COVERALLS}}
|
||||
{{/AFTER}}
|
||||
|
@ -1,19 +1,25 @@
|
||||
{{#GITLABCOVERAGE}}stages:
|
||||
{{#GITLABCOVERAGE}}
|
||||
stages:
|
||||
- test
|
||||
- coverage
|
||||
|
||||
{{/GITLABCOVERAGE}}.test_template: &test_template
|
||||
stage: test{{#GITLABCOVERAGE}}
|
||||
{{/GITLABCOVERAGE}}
|
||||
.test_template: &test_template
|
||||
stage: test
|
||||
{{#GITLABCOVERAGE}}
|
||||
artifacts:
|
||||
name: coverage
|
||||
expire_in: 2 hours
|
||||
paths:
|
||||
- coverage/{{/GITLABCOVERAGE}}
|
||||
- coverage/
|
||||
{{/GITLABCOVERAGE}}
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- julia -e 'Pkg.clone(pwd()); Pkg.build("{{PKGNAME}}"); Pkg.test("{{PKGNAME}}"{{#GITLABCOVERAGE}}; coverage=true{{/GITLABCOVERAGE}})'{{#GITLABCOVERAGE}}
|
||||
- cp -r $(julia -e 'print(Pkg.dir("{{PKGNAME}}", "src"))') coverage{{/GITLABCOVERAGE}}
|
||||
- julia -e 'Pkg.clone(pwd()); Pkg.build("{{PKGNAME}}"); Pkg.test("{{PKGNAME}}"{{#GITLABCOVERAGE}}; coverage=true{{/GITLABCOVERAGE}})'
|
||||
{{#GITLABCOVERAGE}}
|
||||
- cp -r $(julia -e 'print(Pkg.dir("{{PKGNAME}}", "src"))') coverage
|
||||
{{/GITLABCOVERAGE}}
|
||||
|
||||
Julia {{VERSION}}:
|
||||
image: julia:{{VERSION}}
|
||||
@ -22,7 +28,8 @@ Julia {{VERSION}}:
|
||||
Julia nightly:
|
||||
image: staticfloat/julia:nightly-x64
|
||||
allow_failure: true
|
||||
<<: *test_template{{#GITLABCOVERAGE}}
|
||||
<<: *test_template
|
||||
{{#GITLABCOVERAGE}}
|
||||
|
||||
"Coverage":
|
||||
stage: coverage
|
||||
@ -34,4 +41,5 @@ Julia nightly:
|
||||
- apt-get update && apt-get -y install git make unzip gcc bzip2
|
||||
script:
|
||||
- rm -rf src && mv coverage src
|
||||
- julia -e 'Pkg.add("Coverage"); using Coverage; c, t = get_summary(process_folder()); @printf("Test Coverage %.2f%%\n", 100c/t)'{{/GITLABCOVERAGE}}
|
||||
- julia -e 'Pkg.add("Coverage"); using Coverage; c, t = get_summary(process_folder()); @printf("Test Coverage %.2f%%\n", 100c/t)'
|
||||
{{/GITLABCOVERAGE}}
|
||||
|
@ -14,8 +14,16 @@ notifications:
|
||||
email: false
|
||||
script:
|
||||
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
|
||||
- julia -e 'Pkg.clone(pwd()); Pkg.build("{{PKGNAME}}"); Pkg.test("{{PKGNAME}}"{{#AFTER}}; coverage=true{{/AFTER}})'{{#AFTER}}
|
||||
after_success:{{#CODECOV}}
|
||||
- julia -e 'cd(Pkg.dir("{{PKGNAME}}")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'{{/CODECOV}}{{#COVERALLS}}
|
||||
- julia -e 'cd(Pkg.dir("{{PKGNAME}}")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())'{{/COVERALLS}}{{#DOCUMENTER}}
|
||||
- julia -e 'Pkg.add("Documenter"); cd(Pkg.dir("{{PKGNAME}}")); include(joinpath("docs", "make.jl"))'{{/DOCUMENTER}}{{/AFTER}}
|
||||
- julia -e 'Pkg.clone(pwd()); Pkg.build("{{PKGNAME}}"); Pkg.test("{{PKGNAME}}"{{#AFTER}}; coverage=true{{/AFTER}})'
|
||||
{{#AFTER}}
|
||||
after_success:
|
||||
{{#CODECOV}}
|
||||
- julia -e 'cd(Pkg.dir("{{PKGNAME}}")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
|
||||
{{/CODECOV}}
|
||||
{{#COVERALLS}}
|
||||
- julia -e 'cd(Pkg.dir("{{PKGNAME}}")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())'
|
||||
{{/COVERALLS}}
|
||||
{{#DOCUMENTER}}
|
||||
- julia -e 'Pkg.add("Documenter"); cd(Pkg.dir("{{PKGNAME}}")); include(joinpath("docs", "make.jl"))'
|
||||
{{/DOCUMENTER}}
|
||||
{{/AFTER}}
|
||||
|
@ -4,7 +4,7 @@ CurrentModule = PkgTemplates
|
||||
|
||||
# Plugins
|
||||
|
||||
Plugins are the secret sauce behing `PkgTemplates`'s customization and extension. This page
|
||||
Plugins are the secret sauce behind `PkgTemplates`'s customization and extension. This page
|
||||
describes plugins that already exist; for information on writing your own plugins, see
|
||||
[Plugin Development](@ref).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user