This repository has been archived by the owner on Nov 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Request attestation if selected (#173)
Move project to Maven and add Travis CI support (#166) * Initial commit to begin moving the projects to maven Moving the projects to maven will allow easier deployment and build of the project. * Remove Eclipse specific settings and fix pom.xml Finish updating the project to use Maven. * Add travis.yml file for continuous integration * Update travis file for deployment Build u2f-ref-code dependency. Deploy the standard 'noext' version of the app, then replace the 'noext' specific code with the 'crxjs' specific code before deploying the 'crxjs' app. Additionally, remove the deployment page as the latest code will always be live. * Fix issue where origins.json wasn't included in WAR file
- Loading branch information
Showing
58 changed files
with
493 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
language: java | ||
branches: | ||
only: | ||
- master | ||
before_script: | ||
- cd u2f-ref-code | ||
- mvn install test -B | ||
- cd ../u2f-gae-demo | ||
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && openssl aes-256-cbc -K $encrypted_03381351a0d5_key -iv $encrypted_03381351a0d5_iv | ||
-in clientsecret.json.enc -out clientsecret.json -d' | ||
script: | ||
- mvn test -B | ||
# Deploy "noext" version | ||
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && mvn appengine:update -Dappengine.additionalParams="--service_account_json_key_file=clientsecret.json"' | ||
# Deploy "crxjs" version | ||
- sed -i 's/kmendfapggjehodndflmmgagdbamhnfd/pfboblefjcgdjicmnffhdgionmgcdmne/' war/js/u2f-api.js | ||
- sed -i 's/noext/crxjs/' war/WEB-INF/appengine-web.xml | ||
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && mvn appengine:update -Dappengine.additionalParams="--service_account_json_key_file=clientsecret.json"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
war/WEB-INF/appengine-generated/ | ||
war/WEB-INF/deploy/ | ||
war/WEB-INF/classes/ | ||
target/ | ||
.settings/ | ||
.classpath | ||
.project |
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
u2f-gae-demo/.settings/com.google.appengine.eclipse.core.prefs
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
u2f-gae-demo/.settings/org.eclipse.wst.common.project.facet.core.xml
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>u2f-gae-demo</groupId> | ||
<artifactId>u2f-gae-demo</artifactId> | ||
<properties> | ||
<appengine.app.version>1</appengine.app.version> | ||
<appengine.sdk.version>1.9.54</appengine.sdk.version> | ||
<objectify.version>5.1.5</objectify.version> | ||
<guava.version>18.0</guava.version> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<packaging>war</packaging> | ||
<name>u2f-gae-demo</name> | ||
<description>u2f-gae-demo</description> | ||
<build> | ||
<sourceDirectory>src</sourceDirectory> | ||
<resources> | ||
<resource> | ||
<directory>src</directory> | ||
<excludes> | ||
<exclude>**/*.java</exclude> | ||
</excludes> | ||
</resource> | ||
</resources> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.5.1</version> | ||
<configuration> | ||
<source>1.7</source> | ||
<target>1.7</target> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-clean-plugin</artifactId> | ||
<version>3.0.0</version> | ||
<configuration> | ||
<filesets> | ||
<fileset> | ||
<directory>${basedir}/war/WEB-INF/appengine-generated</directory> | ||
</fileset> | ||
</filesets> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-war-plugin</artifactId> | ||
<version>2.6</version> | ||
<configuration> | ||
<archiveClasses>true</archiveClasses> | ||
<webResources> | ||
<!-- in order to interpolate version from pom into appengine-web.xml --> | ||
<resource> | ||
<directory>${basedir}/war/WEB-INF</directory> | ||
<targetPath>WEB-INF</targetPath> | ||
</resource> | ||
<resource> | ||
<directory>${basedir}/war/js</directory> | ||
<targetPath>js</targetPath> | ||
</resource> | ||
<resource> | ||
<directory>${basedir}/war/css</directory> | ||
<targetPath>css</targetPath> | ||
</resource> | ||
<resource> | ||
<directory>${basedir}/war/img</directory> | ||
<targetPath>img</targetPath> | ||
</resource> | ||
<resource> | ||
<directory>${basedir}/war/jquery</directory> | ||
<targetPath>jquery</targetPath> | ||
</resource> | ||
<resource> | ||
<directory>${basedir}/war</directory> | ||
<includes> | ||
<include>favicon.ico</include> | ||
<include>origins.json</include> | ||
</includes> | ||
</resource> | ||
</webResources> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>com.google.appengine</groupId> | ||
<artifactId>appengine-maven-plugin</artifactId> | ||
<version>${appengine.sdk.version}</version> | ||
<configuration> | ||
<enableJarClasses>false</enableJarClasses> | ||
<port>8888</port> | ||
<!-- Comment in the below snippet to bind to all IPs instead of just localhost --> | ||
<!-- <address>0.0.0.0</address> --> | ||
<!-- <port>8080</port> --> | ||
<!-- Comment in the below snippet to enable local debugging with a remote | ||
debugger like those included with Eclipse or IntelliJ --> | ||
<!-- jvmFlags> <jvmFlag>-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n</jvmFlag> | ||
</jvmFlags --> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.googlecode.objectify</groupId> | ||
<artifactId>objectify</artifactId> | ||
<version>5.1.5</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.appengine</groupId> | ||
<artifactId>appengine-api-1.0-sdk</artifactId> | ||
<version>${appengine.sdk.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.appengine</groupId> | ||
<artifactId>appengine-endpoints</artifactId> | ||
<version>${appengine.sdk.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.template</groupId> | ||
<artifactId>soy</artifactId> | ||
<version>2015-03-06</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>javax.servlet</groupId> | ||
<artifactId>servlet-api</artifactId> | ||
<version>2.5</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.inject.extensions</groupId> | ||
<artifactId>guice-servlet</artifactId> | ||
<version>4.1.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>u2f-ref-code</groupId> | ||
<artifactId>u2f-ref-code</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>com.google.collections</groupId> | ||
<artifactId>google-collections</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
</dependencies> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.