Permalink
Browse files

Adding docker based integration test & publishing docker images to do…

…cker hub.
  • Loading branch information...
atooni committed Nov 23, 2018
1 parent 74a157d commit 61dca94fb318f134433266c676c96ecb8b377363
@@ -9,6 +9,9 @@ jdk: oraclejdk8
addons:
chrome: stable
services:
- docker
script:
- sbt ciBuild
@@ -32,7 +35,7 @@ install:
- sudo ln -s /opt/chromedriver /usr/local/bin/chromedriver
before_cache:
- rm -Rf $HOME/.ivy2/.sbt.ivy.lock ; rm -Rf $HOME/.ivy2/local ; rm -Rf $HOME/.m2/repository/de/wayofquality/blended
- rm -Rf $HOME/.ivy2/.sbt.ivy.lock ; rm -Rf $HOME/.ivy2/local
env:
global:
@@ -47,6 +50,10 @@ env:
- secure: "KBQ2ReAGgCp4UXR/W20H3H2yIjqVTaadyoEJaGjwAujJJHp6wd6BdPDdjBVNMYW6J/CH9+HJotZrX6GyPZWrNKms6G5mAH160o5xdgE+WEoAN56mnIBMrff7Di1rDwfLX+XSjcmh+XCsKvgiY230hOXAtZ6ArnqMR6dc1NKu7Ag="
# GITHUB_TOKEN
- secure: "IbsIzNJNyNYY13wb8lmbZgoJhU03DsddEaWnjEoGN6p97cag6MIIB6XiDm5GrEshmKoK/IuXQBm0t+ur65pUrH9IYbir9zfn4Jzok7cESPXi9BUdJq8D7bkNRTOy98dWK+MWHF5WtNb054i3g1Fxe0k8ynRM/lIbfo/NjmmAW8k="
# DOCKER_USERNAME
- secure: "KZskPnjiNor+iXpTQjF/aIlgOjn3mztpkL/WUyEys6Fb0UI2HXK0adzJcSDe46nPxG8En4uSxZ9Sq4oP1CP9MD/sgMPIFZX00r5+nONyDRTYJfFm06YvTyJAMvawGjwqlOdL+nw4DVOH8rJle5R3Uh+caGQiDMV4EMded7lEPdc="
# DOCKER_PASSWORD
- secure: "TJ3SBlzPl4VeepEc1v9Tp8pSleb9WN+jmUT8+JgZIeyWWHmMtPfuMN3d0SuIrKRSR1ZxOpq2RVopU++kbu1Gb1oafpdSo/gjL+/CTL9bfe4Dua0wmBmmNf+Nl76x+Vl7zZ7qQm6LlDgaExfcNg/7x3dOq8m1ZkEOVrAqB0nzdG4="
stages:
- name: VerifyPublish
@@ -66,6 +73,9 @@ stages:
- name: BuildUI
if: branch = master AND type = push
- name: IntegrationTest
if: branch = master AND type = push
jobs:
include:
# ------ Stage Verify publish
@@ -96,6 +106,13 @@ jobs:
- stage: BuildUI
script: $TRAVIS_BUILD_DIR/scripts/buildUI.sh
# ------ Stage Docker Images
- stage: IntegrationTest
before_script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
script:
- $TRAVIS_BUILD_DIR/scripts/itest.sh
# ------ Stage Site Deploy
- stage: Site
before_script:
@@ -2,19 +2,16 @@ package blended.persistence.h2.internal
import java.io.File
import scala.util.Failure
import scala.util.Success
import blended.domino.TypesafeConfigWatching
import blended.persistence.PersistenceService
import blended.persistence.jdbc.PersistedClassDao
import blended.persistence.jdbc.PersistenceServiceJdbc
import blended.persistence.jdbc.{PersistedClassDao, PersistenceServiceJdbc}
import blended.util.logging.Logger
import com.zaxxer.hikari.HikariDataSource
import domino.DominoActivator
import org.h2.jdbcx.JdbcDataSource
import org.springframework.jdbc.datasource.DataSourceTransactionManager
import blended.util.config.Implicits._
import scala.util.{Failure, Success}
class H2Activator() extends DominoActivator with TypesafeConfigWatching {
@@ -1,10 +1,9 @@
import org.scalajs.sbtplugin.ScalaJSPlugin
import sbt._
import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._
import sbt.Keys._
import sbt._
import scalajsbundler.sbtplugin.ScalaJSBundlerPlugin
import JBake.autoImport._
import ScalaJSBundlerPlugin.autoImport._
import ScalaJSPlugin.autoImport._
import scalajsbundler.sbtplugin.ScalaJSBundlerPlugin.autoImport._
object BlendedDocsJs extends ProjectFactory {
@@ -3,9 +3,8 @@ import java.nio.file.{Files, StandardCopyOption}
import Dependencies._
import FilterResources.autoImport._
import com.typesafe.sbt.SbtNativePackager.autoImport.NativePackagerHelper._
import com.typesafe.sbt.SbtNativePackager.autoImport._
import com.typesafe.sbt.packager.universal.{UniversalDeployPlugin, UniversalPlugin}
import com.typesafe.sbt.packager.universal.UniversalPlugin.autoImport._
import com.typesafe.sbt.packager.universal.{UniversalDeployPlugin, UniversalPlugin}
import sbt.Keys._
import sbt._
@@ -1,5 +1,5 @@
import com.typesafe.sbt.packager.universal.{UniversalDeployPlugin, UniversalPlugin}
import com.typesafe.sbt.packager.universal.UniversalPlugin.autoImport._
import com.typesafe.sbt.packager.universal.{UniversalDeployPlugin, UniversalPlugin}
import sbt.Keys._
import sbt._
import sbt.librarymanagement.InclExclRule
@@ -1,6 +1,6 @@
import TestLogConfig.autoImport._
import sbt._
import sbt.Keys._
import sbt._
object BlendedStreamsDispatcher extends ProjectFactory {
@@ -1,8 +1,6 @@
import com.typesafe.sbt.SbtScalariform.autoImport._
import sbt.Keys._
import sbt.Tests.{Group, SubProcess}
import sbt._
import sbt.internal.inc.Analysis
import xerial.sbt.Sonatype.SonatypeKeys._
import xsbti.api.{AnalyzedClass, Projection}
@@ -1,9 +1,9 @@
import java.io.{File, FileInputStream, FileOutputStream}
import java.util.Properties
import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._
import sbt.Keys._
import sbt._
import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._
import scalajsbundler.sbtplugin.ScalaJSBundlerPlugin.autoImport._
object JBake extends AutoPlugin {
@@ -0,0 +1,16 @@
#!/bin/bash
set -e
set BLENDED_VERSION=$(cat $TRAVIS_BUILD_DIR/version.txt)
git clone https://github.com/woq-blended/blended.container.git $TRAVIS_BUILD_DIR/container
cd container
git checkout master
docker --version
mvn clean install -P docker,itest
docker push atooni/blended_mgmt:$BLENDED_VERSION
docker push atooni/blended_node:$BLENDED_VERSION
cd $TRAVIS_BUILD_DIR
@@ -1 +1 @@
2.6.0-M2-SNAPSHOT
2.6.0-M2-SNAPSHOT

0 comments on commit 61dca94

Please sign in to comment.