Integracion Continua en Oracle ADF

28
ORACLE OTN TOUR Alexis López - [email protected] - @aa_lopez AGO-2016 v1 Integración Continua en Oracle ADF build commit dependencias a r t e f a c t o s Pruebas automatizadas Checkout P rob ar/C o m pr obar build ? ? ? ? ?

Transcript of Integracion Continua en Oracle ADF

Page 1: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Integración Continua en Oracle ADF

build

commit

dependencias

arte

fact

os

Pruebas automatizadas

Checkout

Probar/C

omprobarbu

ild

?

?

?

?

?

Page 2: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

¿Qué es Oracle ADF?

● Framework de desarrollo ● Modelo-Vista-Controlador

● Desarrollado sobre Java EE● 11g → JavaEE 5● 12c → JavaEE 6

● Visual y Declarativo● Interfaz de usuario moderna● Flujos de navegación avanzados (Task Flows)● Seguridad integrada● IDEs: JDeveloper and Eclipse(OEPE)*

*Funcionalidades limitadas

Page 3: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

¿Qué es Oracle ADF Essentials?

● Subconjunto de las tecnologías clave de Oracle ADF:● ADF Faces● ADF DvT● ADF Controller● ADF Binding● ADF Bussines Components

● Gratis para desarrollar, Gratis para desplegar● JDeveloper/Eclipse*● MySQL*● Glassfish

*Funcionalidades limitadas

Page 4: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

ADF 12.2.1.x

● Versión 12.2.1.0 -> liberada en Octubre de 2015● Versión 12.2.1.1 -> liberada en Junio de 2016● Actualización a Java SE 8● Actualización a Java EE 6● Nuevos componentes para ADF Faces y ADF DvT● Nuevos componentes y plantilla para diseño adaptable● Soporta CSS3● Soporte para últimas versiones de navegadores● Soporta la creación de APIs tipo Rest a partir del modelo de negocio● Soporte para Git● Mejor soporte para Maven

Page 5: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Integración Continua

Codificar

Compilar

Probar

Desplegar

Page 6: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

¿Por qué la Integración Continua en ADF?

Código Común

Modelo Común UI Común

UC01 UC02 ...

Aplicación Maestra...

Page 7: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Repositorio de código fuente

build

commit

dependencias

arte

fact

os

Pruebas automatizadas

Checkout

Probar/C

omprobar

Despliegue

build

?

?

?

?

?

?

Page 8: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Repositorio de código fuente - Git

Repo Remoto

Desarrollador 1 Desarrollador 2 Desarrollador 3

Push ↑Clone / Pull / Fetch ↓

revert log status

branch merge

commit

...

revert log status

branch merge

commit

...

revert log status

branch merge

commit

...

Page 9: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Repositorio de código fuente – JDeveloper y Git

Page 10: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Repositorio de código fuente – JDeveloper y Git

Page 11: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Gestión de dependencias

build

commit

dependencias

arte

fact

os

Pruebas automatizadas

Checkout

Probar/C

omprobar

Despliegue

build

?

?

?

?

?

Page 12: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Gestión de dependencias

Page 13: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Gestión de dependencias - Maven

com.acelopez:libB:3.0

Dependencias Transitivas

com.acelopez:libA:1.0

com.acelopez:libB:1.0

com.acelopez:libC:1.0

MiAplicación

Fases del ciclo de vida

clean test packagecompile install ......

POMSettings

Page 14: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Gestión de dependencias – JDeveloper y Maven

Page 15: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Gestión de dependencias – JDeveloper y Maven

Page 16: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Repositorio binario

build

commit

dependencias

arte

fact

os

Pruebas automatizadas

Checkout

Probar/C

omprobarbu

ild

?

?

?

Page 17: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Repositorio binario

Desarrollador 1

Repositorio local

Desarrollador 2

Repositorio local

Desarrollador n

Repositorio local

Page 18: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Repositorio binario - Artifactory

Desarrollador 1

Repositorio local

Desarrollador 2

Repositorio local

Desarrollador n

Repositorio local

Red privada

Page 19: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Pruebas y comprobación

build

commit

dependencias

arte

fact

os

Pruebas automatizadas

Checkout

Probar/C

omprobarbu

ild

?

?

Page 20: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Pruebas y comprobación

public class MiClase{

public static final String VERSION = “1.0b”;

public MiClase(){

//...}

}

Calidad de

Código

Page 21: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Pruebas y comprobación - JUnit

Page 22: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Pruebas y comprobación – ADF Selenium

WebDriver + ADF SeleniumAdfButtonAdfCalendarAdfColumnAdfDialogAdfInputDateAdfInputFileAdfLinkAdfMenuAdfTable...

No requiere interacción de bajo nivel con componentes HTML

Page 23: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Pruebas y comprobación - ADF Reglas Auditoría

Page 24: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Orquestación

build

commit

dependencias

arte

fact

os

Pruebas automatizadas

Checkout

Probar/C

omprobarbu

ild

?

Page 25: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Orquestación

git clone

clean

compile

test

package

install

deploy

notify

Page 26: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Orquestación - Jenkins

● Código libre● Gran cantidad de plugins● Apache Maven● Integración Continua ->

Entrega continua

Page 27: Integracion Continua en Oracle ADF

ORACLE OTN TOURAlexis López - [email protected] - @aa_lopez AGO-2016 v1

Integración Continua en Oracle ADF

build

commit

dependencias

arte

fact

os

Pruebas automatizadas

Checkout

Probar/C

omprobarbu

ild