-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
option for using lower camelcase in message field name (#6)
- Loading branch information
Showing
23 changed files
with
205 additions
and
106 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 |
---|---|---|
|
@@ -61,5 +61,4 @@ jobs: | |
- name: Run integration tests | ||
run: | | ||
cd integration_tests | ||
make client-protos | ||
./scripts/test-ci.sh |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
*.pb.ts | ||
*.pb.* |
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
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,20 +1,4 @@ | ||
const getConf = require('./karma.conf.common') | ||
module.exports = function(config) { | ||
config.set({ | ||
frameworks: ['mocha', 'chai', 'karma-typescript'], | ||
preprocessors: { | ||
"**/*.ts": ["karma-typescript"] | ||
}, | ||
files: ['**/*_test.ts', '**/*.pb.ts'], | ||
reporters: ['progress', 'karma-typescript'], | ||
port: 9876, // karma web server port | ||
colors: true, | ||
logLevel: config.LOG_INFO, | ||
browsers: ['ChromeHeadless'], | ||
autoWatch: false, | ||
singleRun: true, // Karma captures browsers, runs the tests and exits | ||
concurrency: Infinity, | ||
karmaTypescriptConfig: { | ||
tsconfig: './tsconfig.json' | ||
} | ||
}) | ||
config.set(getConf(true, config)) | ||
} |
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,23 @@ | ||
module.exports = function(ci, config){ | ||
return { | ||
frameworks: ['mocha', 'chai', 'karma-typescript'], | ||
preprocessors: { | ||
"**/*.ts": ["karma-typescript"] | ||
}, | ||
files: ['**/*_test.ts', '**/*.pb.ts'], | ||
reporters: ['progress', 'karma-typescript'], | ||
port: 9876, // karma web server port | ||
colors: true, | ||
logLevel: config.LOG_INFO, | ||
browsers: ['ChromeHeadless'], | ||
autoWatch: false, | ||
singleRun: ci, // Karma captures browsers, runs the tests and exits | ||
concurrency: Infinity, | ||
karmaTypescriptConfig: { | ||
tsconfig: './tsconfig.json' | ||
}, | ||
client: { | ||
useProtoNames: process.env['USE_PROTO_NAMES'] === "true" | ||
}, | ||
} | ||
} |
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,20 +1,4 @@ | ||
const getConf = require('./karma.conf.common') | ||
module.exports = function(config) { | ||
config.set({ | ||
frameworks: ['mocha', 'chai', 'karma-typescript'], | ||
preprocessors: { | ||
"**/*.ts": ["karma-typescript"] | ||
}, | ||
files: ['**/*_test.ts', '**/*.pb.ts'], | ||
reporters: ['progress', 'karma-typescript'], | ||
port: 9876, // karma web server port | ||
colors: true, | ||
logLevel: config.LOG_INFO, | ||
browsers: ['ChromeHeadless'], | ||
autoWatch: false, | ||
// singleRun: true, // Karma captures browsers, runs the tests and exits | ||
concurrency: Infinity, | ||
karmaTypescriptConfig: { | ||
tsconfig: './tsconfig.json' | ||
} | ||
}) | ||
config.set(getConf(false, config)) | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,6 @@ | ||
#!/bin/bash | ||
USE_PROTO_NAMES=${1:-"false"} | ||
cd .. && go install && cd integration_tests && \ | ||
protoc -I . \ | ||
--grpc-gateway-ts_out=logtostderr=true,use_proto_names=$USE_PROTO_NAMES,loglevel=debug:./ \ | ||
service.proto |
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,7 @@ | ||
#!/bin/bash | ||
|
||
protoc -I . --go_out ./ --go_opt plugins=grpc --go_opt paths=source_relative \ | ||
--grpc-gateway_out ./ --grpc-gateway_opt logtostderr=true \ | ||
--grpc-gateway_opt paths=source_relative \ | ||
--grpc-gateway_opt generate_unbound_methods=true \ | ||
service.proto |
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,14 @@ | ||
#!/bin/bash | ||
|
||
function runTest { | ||
ORIG_NAME=${1:="false"} | ||
CONFIG_NAME=${2:="karma.conf.js"} | ||
./scripts/gen-protos.sh $ORIG_NAME | ||
go run ./ -orig=$ORIG_NAME & | ||
pid=$! | ||
|
||
USE_PROTO_NAMES=$ORIG_NAME ./node_modules/.bin/karma start $CONFIG_NAME | ||
pkill -P $pid | ||
} | ||
|
||
|
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,7 +1,9 @@ | ||
#!/bin/bash | ||
|
||
go run ./ & | ||
pid=$! | ||
source ./scripts/source.sh | ||
|
||
CONF="karma.conf.ci.js" | ||
|
||
runTest false $CONF | ||
runTest true $CONF | ||
|
||
./node_modules/.bin/karma start karma.conf.ci.js | ||
pkill -P $pid |
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,7 +1,7 @@ | ||
#!/bin/bash | ||
|
||
go run ./ & | ||
pid=$! | ||
source ./scripts/source.sh | ||
|
||
./node_modules/.bin/karma start karma.conf.js | ||
pkill -P $pid | ||
CONF="karma.conf.js" | ||
|
||
runTest ${1:-false} $CONF |
Oops, something went wrong.