diff --git a/defaults/appveyor.yml b/defaults/appveyor.yml index c3c13e2..6ae2557 100644 --- a/defaults/appveyor.yml +++ b/defaults/appveyor.yml @@ -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}} diff --git a/defaults/gitlab-ci.yml b/defaults/gitlab-ci.yml index 4120002..49f1693 100644 --- a/defaults/gitlab-ci.yml +++ b/defaults/gitlab-ci.yml @@ -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}} diff --git a/defaults/travis.yml b/defaults/travis.yml index cf1020a..7c4b7eb 100644 --- a/defaults/travis.yml +++ b/defaults/travis.yml @@ -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}} diff --git a/docs/src/pages/plugins.md b/docs/src/pages/plugins.md index 57d1ab9..57bab20 100644 --- a/docs/src/pages/plugins.md +++ b/docs/src/pages/plugins.md @@ -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).