feature: add first ci test

This commit is contained in:
Julien Lengrand-Lambert
2019-10-16 16:28:39 +02:00
parent 41eca4eb36
commit a68bc53020
2 changed files with 45 additions and 3 deletions

41
.circleci/config.yml Normal file
View File

@@ -0,0 +1,41 @@
# Java Maven CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-java/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/openjdk:11-jdk
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4
working_directory: ~/repo
environment:
# Customize the JVM maximum heap limit
MAVEN_OPTS: -Xmx3200m
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "pom.xml" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: mvn dependency:go-offline
- save_cache:
paths:
- ~/.m2
key: v1-dependencies-{{ checksum "pom.xml" }}
# Compile!!
- run: mvn clean install

View File

@@ -7,9 +7,10 @@ import com.google.cloud.dialogflow.v2beta1.ProjectName;
public class CreateAgent {
private static final String GOOGLE_AUTH_ENV_NAME = "GOOGLE_APPLICATION_CREDENTIALS";
private static final String AGENT_NAME = "dialogflow-fun-agent";
private static final String AGENT_ID = "ac522b80-e75b-40cd-9493-269fbb4ef634";
private static final String ENTITY_TYPE_ID = "Developer";
// private static final String AGENT_NAME = "dialogflow-fun-agent";
// private static final String AGENT_ID =
// "ac522b80-e75b-40cd-9493-269fbb4ef634";
// private static final String ENTITY_TYPE_ID = "Developer";
private static EntityCreator entityCreator = new EntityCreator();