mirror of
https://github.com/VinylDNS/vinyldns
synced 2025-08-22 10:10:12 +00:00
Enable code coverage and gh-pages publish on merge to master (#68)
* Consolidate verify step with coverage. * Publish Github pages on merge.
This commit is contained in:
parent
9f952a5ed3
commit
dada99d493
13
.travis.yml
13
.travis.yml
@ -32,12 +32,17 @@ before_cache:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: "Verify"
|
- stage: "Verify core and API modules"
|
||||||
script: sbt ++$TRAVIS_SCALA_VERSION ";validate-api; validate-core; verify-api"
|
script: sbt ++$TRAVIS_SCALA_VERSION ";validate-api; validate-core"
|
||||||
name: "Validate and verify API"
|
name: "Validate and verify API"
|
||||||
- script: ./bin/func-test-api-travis.sh
|
- script: ./bin/func-test-api-travis.sh
|
||||||
name: "Run API functional tests"
|
name: "Run API functional tests"
|
||||||
- script: sbt ++$TRAVIS_SCALA_VERSION ";validate-portal; verify-portal"
|
- script: sbt ++$TRAVIS_SCALA_VERSION "validate-portal"
|
||||||
name: "Validate and verify portal"
|
name: "Validate portal"
|
||||||
- script: ./bin/func-test-portal.sh
|
- script: ./bin/func-test-portal.sh
|
||||||
name: "Run portal functional tests"
|
name: "Run portal functional tests"
|
||||||
|
- script: sbt ++$TRAVIS_SCALA_VERSION "verify"
|
||||||
|
name: "Verify and run coverage on API and portal"
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
|
@ -296,6 +296,8 @@ lazy val docSettings = Seq(
|
|||||||
Map("title" -> "Contributing", "section" -> "contributing", "position" -> "2")
|
Map("title" -> "Contributing", "section" -> "contributing", "position" -> "2")
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
micrositePushSiteWith := GitHub4s,
|
||||||
|
micrositeGithubToken := sys.env.get("SBT_MICROSITES_PUBLISH_TOKEN"),
|
||||||
ghpagesNoJekyll := false,
|
ghpagesNoJekyll := false,
|
||||||
fork in tut := true
|
fork in tut := true
|
||||||
)
|
)
|
||||||
@ -314,8 +316,6 @@ addCommandAlias("validate-portal",
|
|||||||
addCommandAlias("validate", ";validate-core;validate-api;validate-portal")
|
addCommandAlias("validate", ";validate-core;validate-api;validate-portal")
|
||||||
|
|
||||||
// Verify runs all tests and code coverage
|
// Verify runs all tests and code coverage
|
||||||
addCommandAlias("verify-api", ";project api; dockerComposeUp; test; it:test; dockerComposeStop")
|
|
||||||
addCommandAlias("verify-portal", ";project portal; test")
|
|
||||||
addCommandAlias("verify",
|
addCommandAlias("verify",
|
||||||
";project api;dockerComposeUp;project root;coverage;test;it:test;coverageReport;coverageAggregate;project api;dockerComposeStop")
|
";project api;dockerComposeUp;project root;coverage;test;it:test;coverageReport;coverageAggregate;project api;dockerComposeStop")
|
||||||
|
|
||||||
|
@ -48,7 +48,8 @@ object Dependencies {
|
|||||||
"io.prometheus" % "simpleclient_dropwizard" % prometheusV,
|
"io.prometheus" % "simpleclient_dropwizard" % prometheusV,
|
||||||
"io.prometheus" % "simpleclient_common" % prometheusV,
|
"io.prometheus" % "simpleclient_common" % prometheusV,
|
||||||
"com.typesafe" % "config" % configV,
|
"com.typesafe" % "config" % configV,
|
||||||
"org.typelevel" %% "cats-effect" % catsEffectV
|
"org.typelevel" %% "cats-effect" % catsEffectV,
|
||||||
|
"com.47deg" %% "github4s" % "0.18.6"
|
||||||
)
|
)
|
||||||
|
|
||||||
lazy val coreDependencies = Seq(
|
lazy val coreDependencies = Seq(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user