mu-haskell/test-schema.sh
Alejandro Serrano bff6493981
Separate packages (#21)
* Separate Avro and ProtoBuf things in their own adapter packages
* Separate grpc packages in client and server

Fixes #19
2019-11-18 12:23:57 +01:00

24 lines
970 B
Bash
Executable File
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
# In order to run this script you need
# - avro for Python 3 https://avro.apache.org/releases.html
# - protobuf for Python 2 https://github.com/protocolbuffers/protobuf/releases/
# follow https://github.com/protocolbuffers/protobuf/tree/master/python
echo "BUILDING"
stack build mu-avro mu-protobuf
mkdir -p dist
echo "\nAVRO\n====\n"
echo "python/generate"
python3 adapter/avro/test/avro/generate.py adapter/avro/test/avro/example.avsc dist/avro-python.avro
stack exec test-avro dist/avro-haskell.avro dist/avro-python.avro
echo "ptyhon/consume"
python3 adapter/avro/test/avro/consume.py adapter/avro/test/avro/example.avsc dist/avro-haskell.avro
echo "\nPROTOBUF\n========\n"
echo "python/generate"
python adapter/protobuf/test/protobuf/generate.py dist/protobuf-python.pbuf
stack exec test-protobuf dist/protobuf-haskell.pbuf dist/protobuf-python.pbuf
echo "python/consume"
python adapter/protobuf/test/protobuf/consume.py dist/protobuf-haskell.pbuf