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}}\")"
|
- C:\projects\julia\bin\julia -e "versioninfo(); Pkg.clone(pwd(), \"{{PKGNAME}}\"); Pkg.build(\"{{PKGNAME}}\")"
|
||||||
|
|
||||||
test_script:
|
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}}
|
after_test:
|
||||||
- C:\projects\julia\bin\julia -e "cd(Pkg.dir(\"{{PKGNAME}}\")); Pkg.add(\"Coverage\"); using Coverage; Codecov.submit(process_folder())"{{/CODECOV}}{{#COVERALLS}}
|
{{#CODECOV}}
|
||||||
- C:\projects\julia\bin\julia -e "cd(Pkg.dir(\"{{PKGNAME}}\")); Pkg.add(\"Coverage\"); using Coverage; Coveralls.submit(process_folder())"{{/COVERALLS}}{{/AFTER}}
|
- 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
|
- test
|
||||||
- coverage
|
- coverage
|
||||||
|
|
||||||
{{/GITLABCOVERAGE}}.test_template: &test_template
|
{{/GITLABCOVERAGE}}
|
||||||
stage: test{{#GITLABCOVERAGE}}
|
.test_template: &test_template
|
||||||
|
stage: test
|
||||||
|
{{#GITLABCOVERAGE}}
|
||||||
artifacts:
|
artifacts:
|
||||||
name: coverage
|
name: coverage
|
||||||
expire_in: 2 hours
|
expire_in: 2 hours
|
||||||
paths:
|
paths:
|
||||||
- coverage/{{/GITLABCOVERAGE}}
|
- coverage/
|
||||||
|
{{/GITLABCOVERAGE}}
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
script:
|
script:
|
||||||
- julia -e 'Pkg.clone(pwd()); Pkg.build("{{PKGNAME}}"); Pkg.test("{{PKGNAME}}"{{#GITLABCOVERAGE}}; coverage=true{{/GITLABCOVERAGE}})'{{#GITLABCOVERAGE}}
|
- julia -e 'Pkg.clone(pwd()); Pkg.build("{{PKGNAME}}"); Pkg.test("{{PKGNAME}}"{{#GITLABCOVERAGE}}; coverage=true{{/GITLABCOVERAGE}})'
|
||||||
- cp -r $(julia -e 'print(Pkg.dir("{{PKGNAME}}", "src"))') coverage{{/GITLABCOVERAGE}}
|
{{#GITLABCOVERAGE}}
|
||||||
|
- cp -r $(julia -e 'print(Pkg.dir("{{PKGNAME}}", "src"))') coverage
|
||||||
|
{{/GITLABCOVERAGE}}
|
||||||
|
|
||||||
Julia {{VERSION}}:
|
Julia {{VERSION}}:
|
||||||
image: julia:{{VERSION}}
|
image: julia:{{VERSION}}
|
||||||
@ -22,7 +28,8 @@ Julia {{VERSION}}:
|
|||||||
Julia nightly:
|
Julia nightly:
|
||||||
image: staticfloat/julia:nightly-x64
|
image: staticfloat/julia:nightly-x64
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
<<: *test_template{{#GITLABCOVERAGE}}
|
<<: *test_template
|
||||||
|
{{#GITLABCOVERAGE}}
|
||||||
|
|
||||||
"Coverage":
|
"Coverage":
|
||||||
stage: coverage
|
stage: coverage
|
||||||
@ -34,4 +41,5 @@ Julia nightly:
|
|||||||
- apt-get update && apt-get -y install git make unzip gcc bzip2
|
- apt-get update && apt-get -y install git make unzip gcc bzip2
|
||||||
script:
|
script:
|
||||||
- rm -rf src && mv coverage src
|
- 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
|
email: false
|
||||||
script:
|
script:
|
||||||
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
|
- 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}}
|
- julia -e 'Pkg.clone(pwd()); Pkg.build("{{PKGNAME}}"); Pkg.test("{{PKGNAME}}"{{#AFTER}}; coverage=true{{/AFTER}})'
|
||||||
after_success:{{#CODECOV}}
|
{{#AFTER}}
|
||||||
- julia -e 'cd(Pkg.dir("{{PKGNAME}}")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'{{/CODECOV}}{{#COVERALLS}}
|
after_success:
|
||||||
- julia -e 'cd(Pkg.dir("{{PKGNAME}}")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())'{{/COVERALLS}}{{#DOCUMENTER}}
|
{{#CODECOV}}
|
||||||
- julia -e 'Pkg.add("Documenter"); cd(Pkg.dir("{{PKGNAME}}")); include(joinpath("docs", "make.jl"))'{{/DOCUMENTER}}{{/AFTER}}
|
- 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
|
||||||
|
|
||||||
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
|
describes plugins that already exist; for information on writing your own plugins, see
|
||||||
[Plugin Development](@ref).
|
[Plugin Development](@ref).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user