\documentclass[10pt, compress, aspectratio=169]{beamer}

\usetheme[numbering=fraction, progressbar=none, titleformat=smallcaps]{metropolis}
\usepackage{booktabs}
\usepackage{array}
\usepackage{listings}
\usepackage{graphicx}
\usepackage[scale=2]{ccicons}
\usepackage{url}
\usepackage{relsize}
\usepackage{wasysym}
\usepackage{pgfplots}
\usepgfplotslibrary{dateplot}
\usepackage[newcommands]{ragged2e}

\usepackage{booktabs}% http://ctan.org/pkg/booktabs
\newcommand{\tabitem}{~\llap{\textbullet}~}

\newcolumntype{M}[1]{>{\centering}m{#1\textwidth}}
\newcolumntype{L}[1]{>{\RaggedRight}m{#1\textwidth}}
\newcolumntype{R}[1]{>{\RaggedLeft}m{#1\textwidth}}
\newcolumntype{J}[1]{m{#1\textwidth}}

\lstset{ %
  backgroundcolor={},
  basicstyle=\ttfamily\footnotesize,
  breakatwhitespace=true,
  breaklines=true,
  captionpos=n,
  commentstyle=\color{orange},
  escapeinside={\%*}{*)},
  extendedchars=true,
  frame=n,
  keywordstyle=\color{orange},
  language=bash,
  rulecolor=\color{black},
  showspaces=false,
  showstringspaces=false,
  showtabs=false,
  numbers=left,
  numbersep=3pt,
  stepnumber=1,
  stringstyle=\color{gray},
  tabsize=2,
  keywords={thrust,plus,device_vector, copy,transform,begin,end, copyin,
  copyout, acc, \_\_global\_\_, void, int, float, main, threadIdx, blockIdx,
  blockDim, if, else, malloc, NULL, cudaMalloc, cudaMemcpy, cudaSuccess,
  cudaGetLastError, cudaDeviceSynchronize, cudaFree, cudaMemcpyDeviceToHost,
  cudaMemcpyHostToDevice, const, data, independent, kernels, loop,
  fprintf, stderr, cudaGetErrorString, EXIT_FAILURE, for, dim3},
  otherkeywords={::, \#pragma, \#include, <<<,>>>, \&, \*, +, -, /, [, ], >, <}
}

\renewcommand*{\UrlFont}{\ttfamily\smaller\relax}

\graphicspath{{images/}}

\title{Continuous Delivery: Building Trust in a Large-scale, Complex Government Organization}
\author{\footnotesize Rodrigo Siqueira \\ {\scriptsize siqueira@ime.usp.br}}
\institute{\includegraphics[height=2cm]{imelogo}\\[0.2cm] Department of Computer Science \\ University of São Paulo}

\begin{document}

\maketitle

%------------------------------------------------------------------------------
% É COMUM QUE DUAS FORÇAS DISTINTAS RESOLVAM JUNTAR ESFORÇOS, CONTUDO ESSA
% SITUAÇÃO GERA UM POTÊNCIAL EMBATE. EM ESPECIAL, TEMOS O GOVERNO E A ACADEMIA
\section{Introduction}

\begin{frame}{SPB Portal}
  \begin{figure}
    \includegraphics[width=\linewidth,
                     height=0.8\textheight,
                     keepaspectratio]{home-SPB}
  \end{figure}
\end{frame}

\begin{frame}{Technological Requirements}
  \begin{figure}
    \includegraphics[width=\linewidth,
                     height=0.8\textheight,
                     keepaspectratio]{technological-requirements}
  \end{figure}
\end{frame}

\begin{frame}{Architecture}
  \begin{figure}
    \includegraphics[width=\linewidth,
                     height=0.8\textheight,
                     keepaspectratio]{arch3}
  \end{figure}
\end{frame}

\begin{frame}{Culture Shock}
  \begin{figure}
    \includegraphics[width=\linewidth,
                     height=0.8\textheight,
                     keepaspectratio]{shock}
  \end{figure}
\end{frame}

%------------------------------------------------------------------------------
\section{Our Continuous Delivery Pipeline}

\begin{frame}{Automated Tests}
  \begin{figure}
    \includegraphics[width=\linewidth,
                     height=0.8\textheight,
                     keepaspectratio]{pipeline}
  \end{figure}
\end{frame}

\begin{frame}{Automated Tests}
  \begin{figure}
    \includegraphics[width=\linewidth,
                     height=0.8\textheight,
                     keepaspectratio]{pipeline_implementation}
  \end{figure}
\end{frame}

\begin{frame}{Automated Tests}
  \begin{figure}
    \includegraphics[width=\linewidth,
                     height=0.8\textheight,
                     keepaspectratio]{pipeline_test}
  \end{figure}
\end{frame}

\begin{frame}{Preparing a New Release}
  \begin{figure}
    \includegraphics[width=\linewidth,
                     height=0.8\textheight,
                     keepaspectratio]{pipeline_release}
  \end{figure}
\end{frame}

\begin{frame}{Packaging}
  \begin{figure}
    \includegraphics[width=\linewidth,
                     height=0.8\textheight,
                     keepaspectratio]{pipeline_packaging}
  \end{figure}
\end{frame}

\begin{frame}{Validation Environment}
  \begin{figure}
    \includegraphics[width=\linewidth,
                     height=0.8\textheight,
                     keepaspectratio]{pipeline_ve}
  \end{figure}
\end{frame}

\begin{frame}{Acceptance Tests}
  \begin{figure}
    \includegraphics[width=\linewidth,
                     height=0.8\textheight,
                     keepaspectratio]{pipeline_acceptance}
  \end{figure}
\end{frame}

\begin{frame}{Production Environment Deployment}
  \begin{figure}
    \includegraphics[width=\linewidth,
                     height=0.8\textheight,
                     keepaspectratio]{pipeline_pe}
  \end{figure}
\end{frame}

%------------------------------------------------------------------------------
\section{Benefits}
\begin{frame}{Release Evolution}
  \begin{figure}
    \includegraphics[width=\linewidth,
                     height=0.8\textheight,
                     keepaspectratio]{release_evolution}
  \end{figure}
\end{frame}

\begin{frame}{Team Members Distribution}
  \begin{figure}
    \includegraphics[width=\linewidth,
                     height=0.8\textheight,
                     keepaspectratio]{team_members}
  \end{figure}
\end{frame}

\begin{frame}{Benefits}
  \begin{itemize}
    \item Strengthening Trust in the Relationship with the Government
    \item Responsiveness to Change
    \item Shared Responsibility
    \item Synchronization Between Government and Development
  \end{itemize}
\end{frame}

%------------------------------------------------------------------------------
\section{Lessons Learned}

\begin{frame}{Lessons Learned}
  \begin{figure}
    \includegraphics[width=\linewidth,
                     height=0.8\textheight,
                     keepaspectratio]{learned}
  \end{figure}
\end{frame}

\begin{frame}{Build CD From Scratch}
\begin{exampleblock}{Lessons}
    \begin{itemize}
      \item Select the most experienced senior developers and some advanced
            interns to work on a specific DevOps team
      \item Interchange team members and encourage teammates to migrate to the
            DevOps team
    \end{itemize}
  \end{exampleblock}
\end{frame}

\begin{frame}{Overcoming Mistrust}
\begin{exampleblock}{Lessons}
    \begin{itemize}
      \item Demonstrate actual results, instead of simply reporting them
      \item Make project management transparent and collaborative for
            government staff
      \item Gain the confidence of government staff
    \end{itemize}
  \end{exampleblock}
\end{frame}
%------------------------------------------------------------------------------
%------------------------------------------------------------------------------
\section{About this presentation}
\begin{frame}[standout]
  % TODO: Improve it
   \begin{center}\ccbysa\end{center}
\end{frame}

%TODO: Bibliography
% break [n]: http://tldp.org/LDP/abs/html/loopcontrol.html
% continue [n]: http://tldp.org/LDP/abs/html/loopcontrol.html
% exec: http://wiki.bash-hackers.org/commands/builtin/exec
% caller: http://wiki.bash-hackers.org/commands/builtin/caller
% key num code: http://invisible-island.net/xterm/xterm-function-keys.html
\maketitle

\end{document}
