From 82f3d45ffe58c94394bc0787a7f6e3c754703da6 Mon Sep 17 00:00:00 2001 From: Timothy Perrett Date: Sun, 14 Oct 2018 17:45:38 -0700 Subject: [PATCH 01/16] Change publish coordinates --- README.md | 8 ++++---- docs/src/main/tut/usage.md | 4 ++-- project.sbt | 2 +- project/CentralRequirementsPlugin.scala | 8 ++++---- project/plugins.sbt | 3 +-- 5 files changed, 12 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 95f41f7..3480a46 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ Knobs ![image](docs/src/site/img/logo.png) [![Join the chat at https://gitter.im/oncue/knobs](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/oncue/knobs) -[![Build Status](https://travis-ci.org/Verizon/knobs.svg?branch=master)](https://travis-ci.org/Verizon/knobs) -[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.verizon.knobs/core_2.11/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.verizon.knobs/core_2.11) -[![codecov](https://codecov.io/gh/Verizon/knobs/branch/master/graph/badge.svg)](https://codecov.io/gh/Verizon/knobs) +[![Build Status](https://travis-ci.org/getnelson/knobs.svg?branch=master)](https://travis-ci.org/getnelson/knobs) +[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.getnelson.knobs/core_2.11/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.getnelson.knobs/core_2.11) +[![codecov](https://codecov.io/gh/getnelson/knobs/branch/master/graph/badge.svg)](https://codecov.io/gh/getnelson/knobs) -Please [view the documentation](http://oncue.github.io/knobs/) for more information, and go to [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22io.verizon.knobs%22) for the latest releases. +Please [view the documentation](http://oncue.github.io/knobs/) for more information, and go to [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22io.getnelson.knobs%22) for the latest releases. diff --git a/docs/src/main/tut/usage.md b/docs/src/main/tut/usage.md index ac8281f..ace7e26 100644 --- a/docs/src/main/tut/usage.md +++ b/docs/src/main/tut/usage.md @@ -11,10 +11,10 @@ section: "usage" First you need to add the dependency for Knobs to your `build.scala` or your `build.sbt` file: ```` -libraryDependencies += "io.verizon.knobs" %% "core" % "x.x.+" +libraryDependencies += "io.getnelson.knobs" %% "core" % "x.x.+" ```` -Where `x.x` is the desired Knobs version. Knobs follows traditional [semantic versioning](semver). Check for the latest release [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22io.verizon.knobs%22). +Where `x.x` is the desired Knobs version. Knobs follows traditional [semantic versioning](semver). Check for the latest release [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22io.getnelson.knobs%22). [semver]: https://semver.org/ diff --git a/project.sbt b/project.sbt index c05b16e..90fbae5 100644 --- a/project.sbt +++ b/project.sbt @@ -14,7 +14,7 @@ //: limitations under the License. //: //: ---------------------------------------------------------------------------- -organization in Global := "io.verizon.knobs" +organization in Global := "io.getnelson.knobs" crossScalaVersions in Global := Seq("2.12.4", "2.11.12") diff --git a/project/CentralRequirementsPlugin.scala b/project/CentralRequirementsPlugin.scala index 58e338f..cbf3fd0 100644 --- a/project/CentralRequirementsPlugin.scala +++ b/project/CentralRequirementsPlugin.scala @@ -26,7 +26,7 @@ object CentralRequirementsPlugin extends AutoPlugin { override def requires = RigPlugin override lazy val projectSettings = Seq( - sonatypeProfileName := "io.verizon", + sonatypeProfileName := "io.getnelson", pomExtra in Global := { @@ -47,8 +47,8 @@ object CentralRequirementsPlugin extends AutoPlugin { }, licenses := Seq("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.html")), - homepage := Some(url("http://verizon.github.io/knobs/")), - scmInfo := Some(ScmInfo(url("https://github.com/verizon/knobs"), - "git@github.com:verizon/knobs.git")) + homepage := Some(url("http://getnelson.github.io/knobs/")), + scmInfo := Some(ScmInfo(url("https://github.com/getnelson/knobs"), + "git@github.com:getnelson/knobs.git")) ) } diff --git a/project/plugins.sbt b/project/plugins.sbt index 733074d..eafdbee 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -20,7 +20,7 @@ resolvers += Resolver.url( Resolver.ivyStylePatterns) addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.3") -addSbtPlugin("io.verizon.build" % "sbt-rig" % "2.0.29") +addSbtPlugin("io.verizon.getnelson" % "sbt-rig" % "2.0.29") // docs addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "0.8.1") @@ -30,4 +30,3 @@ addSbtPlugin("org.tpolecat" % "tut-plugin" % "0.4.7") addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.3.2") scalacOptions += "-deprecation" - From 9d1dbc35fc7af62740eeb29c889d52e3357333d2 Mon Sep 17 00:00:00 2001 From: Timothy Perrett Date: Sun, 14 Oct 2018 17:57:21 -0700 Subject: [PATCH 02/16] Go go go --- .buildkite/pipeline.exec.sh | 17 +++++++++++++++++ .buildkite/pipeline.teardown.sh | 7 +++++++ .buildkite/pipeline.yml | 23 +++++++++++++++++++++++ docs/build.sbt | 3 +-- 4 files changed, 48 insertions(+), 2 deletions(-) create mode 100755 .buildkite/pipeline.exec.sh create mode 100755 .buildkite/pipeline.teardown.sh create mode 100644 .buildkite/pipeline.yml diff --git a/.buildkite/pipeline.exec.sh b/.buildkite/pipeline.exec.sh new file mode 100755 index 0000000..f48c858 --- /dev/null +++ b/.buildkite/pipeline.exec.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +git config --global user.email "team@getnelson.io" +git config --global user.name "Nelson Team" + +# subvert the sbt-rig plugin +export TRAVIS="true" # way hacky +export TRAVIS_COMMIT="$BUILDKITE_COMMIT" +export TRAVIS_REPO_SLUG="getnelson/knobs" +export TRAVIS_JOB_NUMBER="1.1" +export TRAVIS_BUILD_NUMBER="$BUILDKITE_BUILD_NUMBER" + +if [ "$BUILDKITE_PULL_REQUEST" = 'false' ]; then + git checkout -qf "$BUILDKITE_BRANCH"; +fi + +sbt ++2.11.11 'release with-defaults' diff --git a/.buildkite/pipeline.teardown.sh b/.buildkite/pipeline.teardown.sh new file mode 100755 index 0000000..1ec4958 --- /dev/null +++ b/.buildkite/pipeline.teardown.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +echo "==>> initilizing doctl..." +doctl auth init -t "${DIGITAL_OCEAN_API_TOKEN}" + +echo "==>> deleting the droplet..." +doctl compute droplet delete -f buildkite-worker diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml new file mode 100644 index 0000000..f561f6d --- /dev/null +++ b/.buildkite/pipeline.yml @@ -0,0 +1,23 @@ +--- +steps: + - label: ":hammer: build" + command: .buildkite/pipeline.exec.sh + concurrency: 1 + concurrency_group: primary + timeout_in_minutes: 45 + branches: master + env: + - BUILDKITE_CLEAN_CHECKOUT: true + agents: + os: linux + + # - wait: ~ + # continue_on_failure: true + + # - label: ":radioactive_sign: teardown" + # command: .buildkite/pipeline.teardown.sh + # branches: master + # env: + # - BUILDKITE_CLEAN_CHECKOUT: true + # agents: + # os: linux diff --git a/docs/build.sbt b/docs/build.sbt index 7af94a3..f0b50e2 100644 --- a/docs/build.sbt +++ b/docs/build.sbt @@ -16,5 +16,4 @@ ghpagesNoJekyll := false includeFilter in makeSite := "*.yml" | "*.md" | "*.html" | "*.css" | "*.png" | "*.jpg" | "*.gif" | "*.js" | "*.swf" -git.remoteRepo := "git@github.com:Verizon/knobs.git" - +git.remoteRepo := "git@github.com:getnelson/knobs.git" From 81b8316bfad4c64c4dfc975b7dd0627952762cad Mon Sep 17 00:00:00 2001 From: Timothy Perrett Date: Sun, 14 Oct 2018 19:57:00 -0700 Subject: [PATCH 03/16] updaets --- core/build.sbt | 30 +++++++++++++++++++-------- docs/build.sbt | 42 +++++++++++++++++++++----------------- docs/src/main/tut/usage.md | 7 +++++-- project.sbt | 4 ++-- project/build.properties | 18 +--------------- project/plugins.sbt | 12 +++-------- typesafe/build.sbt | 19 ++++++++++++++++- 7 files changed, 73 insertions(+), 59 deletions(-) diff --git a/core/build.sbt b/core/build.sbt index 7a45bf0..ff62307 100644 --- a/core/build.sbt +++ b/core/build.sbt @@ -1,10 +1,22 @@ -resolvers ++= Seq( - "oncue.bintray" at "http://dl.bintray.com/oncue/releases" -) +//: ---------------------------------------------------------------------------- +//: Copyright (C) 2017 Verizon. All Rights Reserved. +//: +//: Licensed under the Apache License, Version 2.0 (the "License"); +//: you may not use this file except in compliance with the License. +//: You may obtain a copy of the License at +//: +//: http://www.apache.org/licenses/LICENSE-2.0 +//: +//: Unless required by applicable law or agreed to in writing, software +//: distributed under the License is distributed on an "AS IS" BASIS, +//: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//: See the License for the specific language governing permissions and +//: limitations under the License. +//: +//: ---------------------------------------------------------------------------- +import verizon.build._ -libraryDependencies ++= { - Seq( - "co.fs2" %% "fs2-core" % "1.0.0", - "io.verizon.ermine" %% "parser" % "0.5.9" - ) -} +libraryDependencies ++= Seq( + "co.fs2" %% "fs2-core" % "1.0.0", + "io.verizon.ermine" %% "parser" % "0.5.9" +) diff --git a/docs/build.sbt b/docs/build.sbt index f0b50e2..ea1612c 100644 --- a/docs/build.sbt +++ b/docs/build.sbt @@ -1,19 +1,23 @@ -import com.typesafe.sbt.SbtSite.SiteKeys._ -import com.typesafe.sbt.SbtGhPages.GhPagesKeys._ - -enablePlugins(DisablePublishingPlugin) -disablePlugins(BinCompatPlugin) - -site.settings - -tutSettings - -site.addMappingsToSiteDir(tut, "") - -ghpages.settings - -ghpagesNoJekyll := false - -includeFilter in makeSite := "*.yml" | "*.md" | "*.html" | "*.css" | "*.png" | "*.jpg" | "*.gif" | "*.js" | "*.swf" - -git.remoteRepo := "git@github.com:getnelson/knobs.git" +//: ---------------------------------------------------------------------------- +//: Copyright (C) 2017 Verizon. All Rights Reserved. +//: +//: Licensed under the Apache License, Version 2.0 (the "License"); +//: you may not use this file except in compliance with the License. +//: You may obtain a copy of the License at +//: +//: http://www.apache.org/licenses/LICENSE-2.0 +//: +//: Unless required by applicable law or agreed to in writing, software +//: distributed under the License is distributed on an "AS IS" BASIS, +//: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//: See the License for the specific language governing permissions and +//: limitations under the License. +//: +//: ---------------------------------------------------------------------------- + +// enablePlugins(TutPlugin, DisablePublishingPlugin) +// disablePlugins(BinCompatPlugin) + +// includeFilter in makeSite := "*.yml" | "*.md" | "*.html" | "*.css" | "*.png" | "*.jpg" | "*.gif" | "*.js" | "*.swf" + +// git.remoteRepo := "git@github.com:getnelson/knobs.git" diff --git a/docs/src/main/tut/usage.md b/docs/src/main/tut/usage.md index ace7e26..cd19e9a 100644 --- a/docs/src/main/tut/usage.md +++ b/docs/src/main/tut/usage.md @@ -46,9 +46,12 @@ To require the file "foo.cfg" from the classpath: ```tut import knobs.{Required,ClassPathResource,Config} -import cats.effect.IO +import cats.effect.{ContextShift, IO} import scala.concurrent.ExecutionContext.Implicits.global +// Provided automatically if you're in IOApp +implicit val cs: ContextShift[IO] = IO.contextShift(global) + val cfg: IO[Config] = knobs.loadImmutable[IO]( Required(ClassPathResource("foo.cfg")) :: Nil) ``` @@ -268,7 +271,7 @@ val c1: IO[Config] = val cfg = for { a <- c1 - b <- aws.config + b <- aws.config[IO] } yield a ++ b ``` diff --git a/project.sbt b/project.sbt index 90fbae5..146d545 100644 --- a/project.sbt +++ b/project.sbt @@ -22,7 +22,7 @@ scalaVersion in Global := crossScalaVersions.value.head scalacOptions in Global := Seq("-Ypartial-unification") -lazy val knobs = project.in(file(".")).aggregate(core, typesafe, zookeeper, docs) +lazy val knobs = project.in(file(".")).aggregate(core, typesafe, zookeeper) lazy val core = project @@ -30,7 +30,7 @@ lazy val typesafe = project.dependsOn(core) lazy val zookeeper = project.dependsOn(core) -lazy val docs = project.dependsOn(core, zookeeper) +lazy val docs = project.dependsOn(zookeeper) enablePlugins(DisablePublishingPlugin) diff --git a/project/build.properties b/project/build.properties index 1d1766f..8b697bb 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1,17 +1 @@ -//: ---------------------------------------------------------------------------- -//: Copyright (C) 2017 Verizon. All Rights Reserved. -//: -//: Licensed under the Apache License, Version 2.0 (the "License"); -//: you may not use this file except in compliance with the License. -//: You may obtain a copy of the License at -//: -//: http://www.apache.org/licenses/LICENSE-2.0 -//: -//: Unless required by applicable law or agreed to in writing, software -//: distributed under the License is distributed on an "AS IS" BASIS, -//: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//: See the License for the specific language governing permissions and -//: limitations under the License. -//: -//: ---------------------------------------------------------------------------- -sbt.version=0.13.16 +sbt.version=1.1.0 diff --git a/project/plugins.sbt b/project/plugins.sbt index eafdbee..1bce43a 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -19,14 +19,8 @@ resolvers += Resolver.url( url("http://dl.bintray.com/content/tpolecat/sbt-plugin-releases"))( Resolver.ivyStylePatterns) -addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.3") -addSbtPlugin("io.verizon.getnelson" % "sbt-rig" % "2.0.29") +addSbtPlugin("io.verizon.build" % "sbt-rig" % "5.0.39") // docs -addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "0.8.1") -addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.5.3") -addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.14") -addSbtPlugin("org.tpolecat" % "tut-plugin" % "0.4.7") -addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.3.2") - -scalacOptions += "-deprecation" +addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.14") +addSbtPlugin("org.tpolecat" % "tut-plugin" % "0.6.7") diff --git a/typesafe/build.sbt b/typesafe/build.sbt index c1f3c5c..841ad01 100644 --- a/typesafe/build.sbt +++ b/typesafe/build.sbt @@ -1,2 +1,19 @@ -// 1.3.0 is out but it depends on java 1.8. +//: ---------------------------------------------------------------------------- +//: Copyright (C) 2017 Verizon. All Rights Reserved. +//: +//: Licensed under the Apache License, Version 2.0 (the "License"); +//: you may not use this file except in compliance with the License. +//: You may obtain a copy of the License at +//: +//: http://www.apache.org/licenses/LICENSE-2.0 +//: +//: Unless required by applicable law or agreed to in writing, software +//: distributed under the License is distributed on an "AS IS" BASIS, +//: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//: See the License for the specific language governing permissions and +//: limitations under the License. +//: +//: ---------------------------------------------------------------------------- +import verizon.build._ + libraryDependencies += "com.typesafe" % "config" % "1.3.3" From beea9821a484d0bd4fb027039e7f12c9852e7a7a Mon Sep 17 00:00:00 2001 From: Timothy Perrett Date: Sun, 14 Oct 2018 20:07:41 -0700 Subject: [PATCH 04/16] fix tests --- .buildkite/pipeline.exec.sh | 1 + core/build.sbt | 7 +++++++ project.sbt | 4 ++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.buildkite/pipeline.exec.sh b/.buildkite/pipeline.exec.sh index f48c858..99ab101 100755 --- a/.buildkite/pipeline.exec.sh +++ b/.buildkite/pipeline.exec.sh @@ -9,6 +9,7 @@ export TRAVIS_COMMIT="$BUILDKITE_COMMIT" export TRAVIS_REPO_SLUG="getnelson/knobs" export TRAVIS_JOB_NUMBER="1.1" export TRAVIS_BUILD_NUMBER="$BUILDKITE_BUILD_NUMBER" +export KNOBS_TEST_DIR="/tmp" if [ "$BUILDKITE_PULL_REQUEST" = 'false' ]; then git checkout -qf "$BUILDKITE_BRANCH"; diff --git a/core/build.sbt b/core/build.sbt index ff62307..fc3bac0 100644 --- a/core/build.sbt +++ b/core/build.sbt @@ -16,7 +16,14 @@ //: ---------------------------------------------------------------------------- import verizon.build._ +enablePlugins(ScalaTestPlugin) + libraryDependencies ++= Seq( "co.fs2" %% "fs2-core" % "1.0.0", "io.verizon.ermine" %% "parser" % "0.5.9" ) + + +scalaTestVersion := "3.0.5" + +scalaCheckVersion := "1.13.5" diff --git a/project.sbt b/project.sbt index 146d545..ca8ced5 100644 --- a/project.sbt +++ b/project.sbt @@ -26,9 +26,9 @@ lazy val knobs = project.in(file(".")).aggregate(core, typesafe, zookeeper) lazy val core = project -lazy val typesafe = project.dependsOn(core) +lazy val typesafe = project.dependsOn(core % "test->test;compile->compile") -lazy val zookeeper = project.dependsOn(core) +lazy val zookeeper = project.dependsOn(core % "test->test;compile->compile") lazy val docs = project.dependsOn(zookeeper) From 42ce55fa24296931944b529916dc3b4135349a93 Mon Sep 17 00:00:00 2001 From: Timothy Perrett Date: Sun, 14 Oct 2018 20:13:09 -0700 Subject: [PATCH 05/16] Fix tests --- .buildkite/pipeline.exec.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/pipeline.exec.sh b/.buildkite/pipeline.exec.sh index 99ab101..3b2324c 100755 --- a/.buildkite/pipeline.exec.sh +++ b/.buildkite/pipeline.exec.sh @@ -9,7 +9,7 @@ export TRAVIS_COMMIT="$BUILDKITE_COMMIT" export TRAVIS_REPO_SLUG="getnelson/knobs" export TRAVIS_JOB_NUMBER="1.1" export TRAVIS_BUILD_NUMBER="$BUILDKITE_BUILD_NUMBER" -export KNOBS_TEST_DIR="/tmp" +export KNOBS_TEST_DIR="knobs-test" if [ "$BUILDKITE_PULL_REQUEST" = 'false' ]; then git checkout -qf "$BUILDKITE_BRANCH"; From f9b1ae61b5666d92baa62a8d62903be7e304a62c Mon Sep 17 00:00:00 2001 From: Timothy Perrett Date: Sun, 14 Oct 2018 20:19:59 -0700 Subject: [PATCH 06/16] terminate on complete --- .buildkite/pipeline.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index f561f6d..af36b43 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -11,13 +11,13 @@ steps: agents: os: linux - # - wait: ~ - # continue_on_failure: true + - wait: ~ + continue_on_failure: true - # - label: ":radioactive_sign: teardown" - # command: .buildkite/pipeline.teardown.sh - # branches: master - # env: - # - BUILDKITE_CLEAN_CHECKOUT: true - # agents: - # os: linux + - label: ":radioactive_sign: teardown" + command: .buildkite/pipeline.teardown.sh + branches: master + env: + - BUILDKITE_CLEAN_CHECKOUT: true + agents: + os: linux From 85da3c5138dcfcf864d795d7e5c6207e656e35f6 Mon Sep 17 00:00:00 2001 From: Timothy Perrett Date: Thu, 18 Oct 2018 13:21:25 -0700 Subject: [PATCH 07/16] Publish 2.11 and 2.12 --- .buildkite/pipeline.exec.sh | 3 +-- .buildkite/pipeline.yml | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.buildkite/pipeline.exec.sh b/.buildkite/pipeline.exec.sh index 3b2324c..82afaa8 100755 --- a/.buildkite/pipeline.exec.sh +++ b/.buildkite/pipeline.exec.sh @@ -7,7 +7,6 @@ git config --global user.name "Nelson Team" export TRAVIS="true" # way hacky export TRAVIS_COMMIT="$BUILDKITE_COMMIT" export TRAVIS_REPO_SLUG="getnelson/knobs" -export TRAVIS_JOB_NUMBER="1.1" export TRAVIS_BUILD_NUMBER="$BUILDKITE_BUILD_NUMBER" export KNOBS_TEST_DIR="knobs-test" @@ -15,4 +14,4 @@ if [ "$BUILDKITE_PULL_REQUEST" = 'false' ]; then git checkout -qf "$BUILDKITE_BRANCH"; fi -sbt ++2.11.11 'release with-defaults' +sbt "++${TRAVIS_SCALA_VERSION}" 'release with-defaults' diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index af36b43..0c548e6 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -2,12 +2,23 @@ steps: - label: ":hammer: build" command: .buildkite/pipeline.exec.sh - concurrency: 1 - concurrency_group: primary timeout_in_minutes: 45 branches: master env: - BUILDKITE_CLEAN_CHECKOUT: true + - TRAVIS_SCALA_VERSION: "2.11.12" + - TRAVIS_JOB_NUMBER: "1.1" + agents: + os: linux + + - label: ":hammer: build" + command: .buildkite/pipeline.exec.sh + timeout_in_minutes: 45 + branches: master + env: + - BUILDKITE_CLEAN_CHECKOUT: true + - TRAVIS_SCALA_VERSION: "2.12.4" + - TRAVIS_JOB_NUMBER: "1.2" agents: os: linux From 40c4a198aed70b876dc75e957c3505dcd539488e Mon Sep 17 00:00:00 2001 From: Timothy Perrett Date: Thu, 18 Oct 2018 14:09:10 -0700 Subject: [PATCH 08/16] Hmmm syntax? --- .buildkite/pipeline.exec.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.buildkite/pipeline.exec.sh b/.buildkite/pipeline.exec.sh index 82afaa8..c57b31d 100755 --- a/.buildkite/pipeline.exec.sh +++ b/.buildkite/pipeline.exec.sh @@ -14,4 +14,5 @@ if [ "$BUILDKITE_PULL_REQUEST" = 'false' ]; then git checkout -qf "$BUILDKITE_BRANCH"; fi -sbt "++${TRAVIS_SCALA_VERSION}" 'release with-defaults' +echo "--> running build for ${TRAVIS_SCALA_VERSION}..." +sbt "++${TRAVIS_SCALA_VERSION} 'release with-defaults'" From 452da60b57dfb098fa2055f40b4119637eefbe78 Mon Sep 17 00:00:00 2001 From: Timothy Perrett Date: Thu, 18 Oct 2018 15:12:53 -0700 Subject: [PATCH 09/16] ignore --- .buildkite/pipeline.exec.sh | 5 +++++ .buildkite/pipeline.yml | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.buildkite/pipeline.exec.sh b/.buildkite/pipeline.exec.sh index c57b31d..2d1e5a1 100755 --- a/.buildkite/pipeline.exec.sh +++ b/.buildkite/pipeline.exec.sh @@ -1,5 +1,10 @@ #!/usr/bin/env bash +set -o errexit +set -o errtrace +set -o nounset +set -o pipefail + git config --global user.email "team@getnelson.io" git config --global user.name "Nelson Team" diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 0c548e6..26837b4 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -5,9 +5,9 @@ steps: timeout_in_minutes: 45 branches: master env: - - BUILDKITE_CLEAN_CHECKOUT: true - - TRAVIS_SCALA_VERSION: "2.11.12" - - TRAVIS_JOB_NUMBER: "1.1" + BUILDKITE_CLEAN_CHECKOUT: true + TRAVIS_SCALA_VERSION: "2.11.12" + TRAVIS_JOB_NUMBER: "1.1" agents: os: linux @@ -16,9 +16,9 @@ steps: timeout_in_minutes: 45 branches: master env: - - BUILDKITE_CLEAN_CHECKOUT: true - - TRAVIS_SCALA_VERSION: "2.12.4" - - TRAVIS_JOB_NUMBER: "1.2" + BUILDKITE_CLEAN_CHECKOUT: true + TRAVIS_SCALA_VERSION: "2.12.4" + TRAVIS_JOB_NUMBER: "1.2" agents: os: linux From 3a518561deddccc6bdf6a79d41af2b09bc68d82f Mon Sep 17 00:00:00 2001 From: Nelson Team Date: Thu, 18 Oct 2018 15:22:20 -0700 Subject: [PATCH 10/16] Hate bash. Love life. --- .buildkite/pipeline.exec.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.buildkite/pipeline.exec.sh b/.buildkite/pipeline.exec.sh index 2d1e5a1..7ef8a0b 100755 --- a/.buildkite/pipeline.exec.sh +++ b/.buildkite/pipeline.exec.sh @@ -15,9 +15,9 @@ export TRAVIS_REPO_SLUG="getnelson/knobs" export TRAVIS_BUILD_NUMBER="$BUILDKITE_BUILD_NUMBER" export KNOBS_TEST_DIR="knobs-test" -if [ "$BUILDKITE_PULL_REQUEST" = 'false' ]; then +if [ "${BUILDKITE_PULL_REQUEST:-}" = 'false' ]; then git checkout -qf "$BUILDKITE_BRANCH"; fi echo "--> running build for ${TRAVIS_SCALA_VERSION}..." -sbt "++${TRAVIS_SCALA_VERSION} 'release with-defaults'" +"sbt ++${TRAVIS_SCALA_VERSION} 'release with-defaults'" From 9c7e71693a96590c74efec371c460b7b9d10c736 Mon Sep 17 00:00:00 2001 From: Nelson Team Date: Thu, 18 Oct 2018 15:26:02 -0700 Subject: [PATCH 11/16] dont kill --- .buildkite/pipeline.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 26837b4..54efe19 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -22,13 +22,13 @@ steps: agents: os: linux - - wait: ~ - continue_on_failure: true + # - wait: ~ + # continue_on_failure: true - - label: ":radioactive_sign: teardown" - command: .buildkite/pipeline.teardown.sh - branches: master - env: - - BUILDKITE_CLEAN_CHECKOUT: true - agents: - os: linux + # - label: ":radioactive_sign: teardown" + # command: .buildkite/pipeline.teardown.sh + # branches: master + # env: + # - BUILDKITE_CLEAN_CHECKOUT: true + # agents: + # os: linux From 772b8df2496d4d61fc8214c34de6b2e87bcda342 Mon Sep 17 00:00:00 2001 From: Nelson Team Date: Thu, 18 Oct 2018 15:33:47 -0700 Subject: [PATCH 12/16] Eval --- .buildkite/pipeline.exec.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/pipeline.exec.sh b/.buildkite/pipeline.exec.sh index 7ef8a0b..f19beb1 100755 --- a/.buildkite/pipeline.exec.sh +++ b/.buildkite/pipeline.exec.sh @@ -20,4 +20,4 @@ if [ "${BUILDKITE_PULL_REQUEST:-}" = 'false' ]; then fi echo "--> running build for ${TRAVIS_SCALA_VERSION}..." -"sbt ++${TRAVIS_SCALA_VERSION} 'release with-defaults'" +eval "sbt ++${TRAVIS_SCALA_VERSION} 'release with-defaults'" From 87a40e84492bb87f7359eeb2c20b469743749685 Mon Sep 17 00:00:00 2001 From: Nelson Team Date: Thu, 18 Oct 2018 16:22:04 -0700 Subject: [PATCH 13/16] Kill it with fire --- .buildkite/pipeline.teardown.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/pipeline.teardown.sh b/.buildkite/pipeline.teardown.sh index 1ec4958..43f8956 100755 --- a/.buildkite/pipeline.teardown.sh +++ b/.buildkite/pipeline.teardown.sh @@ -4,4 +4,4 @@ echo "==>> initilizing doctl..." doctl auth init -t "${DIGITAL_OCEAN_API_TOKEN}" echo "==>> deleting the droplet..." -doctl compute droplet delete -f buildkite-worker +doctl compute droplet list | tail +2 | sort -r -k1 | grep "buildkite-worker" | awk '{print $1}' | xargs -L1 doctl compute droplet delete -f From ea088a736ba066e2e690137b92a457a8cc2d675e Mon Sep 17 00:00:00 2001 From: Nelson Team Date: Thu, 18 Oct 2018 16:22:49 -0700 Subject: [PATCH 14/16] doh --- .buildkite/pipeline.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 54efe19..26837b4 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -22,13 +22,13 @@ steps: agents: os: linux - # - wait: ~ - # continue_on_failure: true + - wait: ~ + continue_on_failure: true - # - label: ":radioactive_sign: teardown" - # command: .buildkite/pipeline.teardown.sh - # branches: master - # env: - # - BUILDKITE_CLEAN_CHECKOUT: true - # agents: - # os: linux + - label: ":radioactive_sign: teardown" + command: .buildkite/pipeline.teardown.sh + branches: master + env: + - BUILDKITE_CLEAN_CHECKOUT: true + agents: + os: linux From 1c9fd16fa28bf63dd3a396bde6dfd7715f5237fc Mon Sep 17 00:00:00 2001 From: Nelson Team Date: Thu, 18 Oct 2018 16:55:31 -0700 Subject: [PATCH 15/16] Fix linux --- .buildkite/pipeline.teardown.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/pipeline.teardown.sh b/.buildkite/pipeline.teardown.sh index 43f8956..9ec7e43 100755 --- a/.buildkite/pipeline.teardown.sh +++ b/.buildkite/pipeline.teardown.sh @@ -4,4 +4,4 @@ echo "==>> initilizing doctl..." doctl auth init -t "${DIGITAL_OCEAN_API_TOKEN}" echo "==>> deleting the droplet..." -doctl compute droplet list | tail +2 | sort -r -k1 | grep "buildkite-worker" | awk '{print $1}' | xargs -L1 doctl compute droplet delete -f +doctl compute droplet list | grep -v 'ID' | sort -r -k1 | grep "buildkite-worker" | awk '{print $1}' | xargs -L1 doctl compute droplet delete -f From 9181abb2da395cb05e9ef341aabce91fa2b7f216 Mon Sep 17 00:00:00 2001 From: Timothy Perrett <458+timperrett@users.noreply.github.com> Date: Tue, 14 Sep 2021 06:58:48 -0700 Subject: [PATCH 16/16] Delete .travis.yml --- .travis.yml | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1ecdc9f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,48 +0,0 @@ -language: scala - -matrix: - include: - # scala 2.11 - - jdk: oraclejdk8 - scala: 2.11.12 - # scala 2.12 - - jdk: oraclejdk8 - scala: 2.12.4 - -branches: - only: - - master - -before_script: - - "if [ $TRAVIS_PULL_REQUEST = 'false' ]; then git checkout -qf $TRAVIS_BRANCH; fi" - -script: - - | - if [ $TRAVIS_PULL_REQUEST = 'false' ]; then - if [ $RELEASE_ON_PUSH = 'false' ]; then - sbt ++$TRAVIS_SCALA_VERSION test coverageReport - else - sbt ++$TRAVIS_SCALA_VERSION 'release with-defaults' - fi - else - sbt ++$TRAVIS_SCALA_VERSION test coverageReport - fi - - find $HOME/.sbt -name "*.lock" | xargs rm - - find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm - -cache: - directories: - - $HOME/.ivy2/cache - - $HOME/.sbt/boot/scala-$TRAVIS_SCALA_VERSION - -after_success: - - find $HOME/.sbt -name "*.lock" | xargs rm - - find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm - - "bash <(curl -s https://codecov.io/bash) -r $TRAVIS_REPO_SLUG -t $CODECOV_TOKEN" - -env: - global: - - secure: "emCycBlDj0nwdK/SI4q/38WGlZS1tvttZbgzb38KegPUIOv6hr78L73t/2pb8FT/AHPdhYF4q6q8AXxAJi3QoiznMSAT1xyxZZ+wWrWqPuphhkqMSEdzcG8fbi3YGkB0sl+7ZLsveUg/JmG6j6NFjzWjRjb6Rn9MUWKGWDs5a8g=" - - secure: "RKDMtxH135S+urp/t92qAwe1L0oGDuheKSXBcjwU55v2OS1NX4GPzE64y9hCuYK43BkXB1Xv/mMnF55TYSjHHpnP4BUXW0/SIERrwM+JFQ1TiukocMNiRUZ0jzZ6sUl7wpwhDntXR//jb/6+gCxC7hdlYUQgQ6qjCQffBZT0RzY=" - - secure: "lqLNd52nASivxq6IFYsq7UIBbH2eHVcvqSbOGFkzDsWscBoeWl5BvM1uOGFRoU3kJB3L23tK3Dq8rfIMXUh6ghPQpMlLKNtQ1XiTIm0s5MqY4JqmRbSLb6eexof/sUE6CgtwTlYp6LTQzT0NLdlBsvyySq5EkfJqeMVH0K7uu5Y=" - - KNOBS_TEST_DIR="knobs-test"