Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
target/
.ensime*
.idea/
_site/*
docs/src/jekyll/_site/
docs/src/jekyll/*.md
Expand Down
31 changes: 22 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,34 @@ before_install:
- export PATH=${PATH}:./vendor/bundle

install:
- rvm use 2.3.0 --install --fuzzy
- rvm use 2.6.5 --install --fuzzy
- gem install sass
- gem install jekyll -v 3.2.1
- gem install jekyll -v 4

script:
- sbt ++$TRAVIS_SCALA_VERSION orgScriptCI
- sbt 'examples/test:compile'
stages:
- validation
- deploy
- microsite

jobs:
include:
- stage: validation
script:
- sbt ++$TRAVIS_SCALA_VERSION clean validateDocs validateCoverage
- stage: deploy
if: branch = master AND type != pull_request
name: "Publish artifacts"
script:
- bash <(curl -s https://codecov.io/bash)
- sbt ++$TRAVIS_SCALA_VERSION orgAfterCISuccess
- if grep -q "SNAPSHOT" version.sbt; then
sbt ++$TRAVIS_SCALA_VERSION publish;
else
sbt orgUpdateDocFiles;
git reset --hard HEAD;
git clean -f;
git checkout master;
git pull origin master;
sbt release;
sbt docs/publishMicrosite;
fi
scala: 2.13.0

services:
- redis-server
25 changes: 17 additions & 8 deletions project/ProjectPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import sbtorgpolicies.templates.badges._
import scoverage.ScoverageKeys
import tut.TutPlugin.autoImport._
import microsites._
import sbtorgpolicies.model.GitHubSettings

object ProjectPlugin extends AutoPlugin {

Expand Down Expand Up @@ -105,18 +106,26 @@ object ProjectPlugin extends AutoPlugin {
commandAliases ++
Seq(
description := "Simple & Efficient data access for Scala and Scala.js",
orgGithubSetting := GitHubSettings(
organization = "47degrees",
project = (name in LocalRootProject).value,
organizationName = "47 Degrees",
groupId = "com.47deg",
organizationHomePage = url("http://47deg.com"),
organizationEmail = "hello@47deg.com"
),
orgProjectName := "Fetch",
startYear := Option(2016),
homepage := Option(url("https://47degrees.github.io/fetch/")),
orgBadgeListSetting := List(
GitterBadge.apply(_),
TravisBadge.apply(_),
CodecovBadge.apply(_),
MavenCentralBadge.apply(_),
LicenseBadge.apply(_),
ScalaLangBadge.apply(_),
ScalaJSBadge.apply(_),
GitHubIssuesBadge.apply(_)
GitterBadge.apply,
TravisBadge.apply,
CodecovBadge.apply,
MavenCentralBadge.apply,
LicenseBadge.apply,
ScalaLangBadge.apply,
ScalaJSBadge.apply,
GitHubIssuesBadge.apply
),
orgSupportedScalaJSVersion := Some("0.6.20"),
orgScriptTaskListSetting := List(
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resolvers += Resolver.sonatypeRepo("releases")
addSbtPlugin("com.47deg" % "sbt-org-policies" % "0.12.0-M3")
addSbtPlugin("com.47deg" % "sbt-microsites" % "1.0.1")
addSbtPlugin("com.47deg" % "sbt-microsites" % "1.1.3")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.0.0")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.32")