Skip to content

Commit

Permalink
try run stress test on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
kailuowang committed Aug 19, 2016
1 parent 21cfdfa commit bf7802a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ cache:
- $HOME/.ivy2/cache
- $HOME/.nvm

before_script:
- sbt ++$TRAVIS_SCALA_VERSION stressFrontend/run &
script:
- sbt ++$TRAVIS_SCALA_VERSION clean coverage test integration:test coverageReport
- sbt ++$TRAVIS_SCALA_VERSION stress

after_success:
- sbt ++$TRAVIS_SCALA_VERSION coverageAggregate coveralls
Expand Down
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ lazy val stressGatling = project.in(file("./stress/gatling"))


addCommandAlias("root", ";project root")
addCommandAlias("stress", ";stressGatling/gatling:test-only kanaloa.stress.KanaloaLocalSimulation")
addCommandAlias("validate", ";root;clean;compile;test;integration:test")
addCommandAlias("root", ";project root")

Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import kanaloa.stress.frontend.HttpService
import scala.concurrent.duration._
import scala.language.postfixOps

class KanaloaLocalSimulation extends StressSimulation(SimulationSettings(
duration = 5.minutes,
rampUp = 1.minutes,
class KanaloaLocalSimulation extends StressSimulation(SimulationSettings.overflow(
path = "kanaloa",
name = "Overflow a local service with kanaloa"
))
Expand Down Expand Up @@ -88,7 +86,6 @@ abstract class StressSimulation(settings: SimulationSettings) extends Simulation

}


case class SimulationSettings(
duration: FiniteDuration,
rampUp: FiniteDuration,
Expand Down Expand Up @@ -121,7 +118,7 @@ object SimulationSettings {
path = path
)

def automaticOverflow(name: String, path: String) = new SimulationSettings(
def overflow(name: String, path: String) = new SimulationSettings(
duration = 5.minutes,
rampUp = 1.minutes,
capRps = 300,
Expand Down

0 comments on commit bf7802a

Please sign in to comment.