2
0
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:
Michael Ly 2018-08-07 15:43:23 -04:00 committed by GitHub
parent 9f952a5ed3
commit dada99d493
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 7 deletions

View File

@ -32,12 +32,17 @@ before_cache:
jobs:
include:
- stage: "Verify"
script: sbt ++$TRAVIS_SCALA_VERSION ";validate-api; validate-core; verify-api"
- stage: "Verify core and API modules"
script: sbt ++$TRAVIS_SCALA_VERSION ";validate-api; validate-core"
name: "Validate and verify API"
- script: ./bin/func-test-api-travis.sh
name: "Run API functional tests"
- script: sbt ++$TRAVIS_SCALA_VERSION ";validate-portal; verify-portal"
name: "Validate and verify portal"
- script: sbt ++$TRAVIS_SCALA_VERSION "validate-portal"
name: "Validate portal"
- script: ./bin/func-test-portal.sh
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)

View File

@ -296,6 +296,8 @@ lazy val docSettings = Seq(
Map("title" -> "Contributing", "section" -> "contributing", "position" -> "2")
)
),
micrositePushSiteWith := GitHub4s,
micrositeGithubToken := sys.env.get("SBT_MICROSITES_PUBLISH_TOKEN"),
ghpagesNoJekyll := false,
fork in tut := true
)
@ -314,8 +316,6 @@ addCommandAlias("validate-portal",
addCommandAlias("validate", ";validate-core;validate-api;validate-portal")
// 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",
";project api;dockerComposeUp;project root;coverage;test;it:test;coverageReport;coverageAggregate;project api;dockerComposeStop")

View File

@ -48,7 +48,8 @@ object Dependencies {
"io.prometheus" % "simpleclient_dropwizard" % prometheusV,
"io.prometheus" % "simpleclient_common" % prometheusV,
"com.typesafe" % "config" % configV,
"org.typelevel" %% "cats-effect" % catsEffectV
"org.typelevel" %% "cats-effect" % catsEffectV,
"com.47deg" %% "github4s" % "0.18.6"
)
lazy val coreDependencies = Seq(