-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add List to Feeder transformer (#4) * Maven publish (#9) Co-authored-by: John <[email protected]> Co-authored-by: eevulution <[email protected]>
- Loading branch information
1 parent
301ba4e
commit 526189c
Showing
9 changed files
with
79 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,23 @@ | ||
language: scala | ||
|
||
jdk: | ||
- openjdk11 | ||
script: | ||
- sbt compile test | ||
- openjdk11 | ||
|
||
jobs: | ||
include: | ||
- stage: Tests | ||
name: Unit tests | ||
script: | ||
- sbt compile test | ||
|
||
- stage: Publish | ||
name: Publish release | ||
if: branch = master | ||
before_script: | ||
- gpg --import signingkey.asc | ||
script: | ||
- sbt publish | ||
|
||
before_install: | ||
- openssl aes-256-cbc -K $encrypted_171b1c559d7b_key -iv $encrypted_171b1c559d7b_iv | ||
-in signingkey.asc.enc -out signingkey.asc -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
resolvers += Resolver.bintrayIvyRepo("rallyhealth", "sbt-plugins") | ||
|
||
addSbtPlugin("io.gatling" % "gatling-sbt" % "3.0.0") | ||
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "1.0.0") | ||
addSbtPlugin("com.rallyhealth.sbt" % "sbt-git-versioning" % "1.4.0") | ||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.2") | ||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.0-M2") | ||
addSbtPlugin("io.crashbox" % "sbt-gpg" % "0.2.1") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
package ru.tinkoff.gatling | ||
|
||
import io.gatling.core.feeder.Feeder | ||
import io.gatling.core.feeder._ | ||
|
||
package object feeders { | ||
|
||
def feeder[T](name: String)(f: => T): Feeder[T] = Iterator.continually(Map(name -> f)) | ||
|
||
implicit class FeederOps[A](val feeder: Feeder[A]) extends AnyVal { | ||
def **[B](other: Feeder[B]): Feeder[Any] = feeder.zip(other).map { case (r1, r2) => r1 ++ r2 } | ||
def **[B](other: Feeder[B]): Feeder[Any] = feeder.zip(other).map { case (r1, r2) => r1 ++ r2 } | ||
def toFiniteLength(n: Int): IndexedSeq[Record[A]] = feeder.take(n).toIndexedSeq | ||
} | ||
|
||
implicit class Collection2FeederOps[A](val sequence: Traversable[A]) { | ||
def toFeeder(name: String): IndexedSeq[Map[String, A]] = sequence.toIndexedSeq.map(x => Map(name -> x)) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters