Skip to content

Commit

Permalink
Common: add Local Iglu Server to CI/CD process (close #157)
Browse files Browse the repository at this point in the history
  • Loading branch information
chuwy committed Oct 4, 2019
1 parent ef9e2e5 commit 13effcd
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jdk:
before_deploy:
- sudo python -m easy_install --upgrade pyOpenSSL # https://stackoverflow.com/questions/43267157/python-attributeerror-module-object-has-no-attribute-ssl-st-init
- pip install --user release-manager==0.4.1
before_script: ./.travis/start_iglu.sh
env:
global:
- secure: my2pgROi/Xut3sVM47URmR+A/e29Z+pW3dtcHfqJHn3c6CP1NaSSKM+6e3PdM7BYNl9HgT0zUYfnw4lstIi9nCP0vumcA4zbx+zOd9brV10/jhpO/RtMsSQB1ycpGffJP5z+sc6AzK11ECkOoXlGHZNx48Lf9SaDTL79tMn5MQOiJphy+4OKYBiyZEdiPX6C45uvItG9zMN6RhlVpryHzRwdeiqykdFUCd/SeKAiXnAnNFPUyEYAlKz9P3setkZKVzp/yKBNVK41W1myePOWB0Is0MSisOapf1MD/k+tXovH9Ilo+K+HZId5hMpGQMo5tCvb2N2xr7j+VsNwcW3kjgROH/0QfJD9l5pB7P67iKv0JPrOjGpI2DgO7o4/YspAYUferWEeg3JboF+eytSJgXkDF6y4Ll5xQEhEXF5VDZfKamg2MOQBnRa13egn9oom5KcQ/7UrxyirRUFQI04fp3M8hGuYjxIy98t3/7Zw448ayj+oJd0miz449/3iz/YZfuaqlTFHxc22DL9BG9hX7ygOitDDoacGEeK0Z5iL7samU8GI+V5aJP23SaV+t1gvutCEU4NwRGa+ZTPmEt4RInEko0kF69gtGEHq026vjvBGW8uKFcyZcrq1ZJTcRHo3oj2L3Ub1KKuyTxs78Jd3dAI59DSG5ZSkACcuVt5gQdI=
Expand Down
14 changes: 14 additions & 0 deletions .travis/server.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
repo-server {
interface = "0.0.0.0"
port = 8080
idleTimeout = 5
threadPool = {
type = "global"
}
}

database {
type = "dummy"
}

debug = true
28 changes: 28 additions & 0 deletions .travis/start_iglu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/sh

set -e

IGLUCTL_ZIP="igluctl_0.6.0.zip"
IGLUCTL_URI="http://dl.bintray.com/snowplow/snowplow-generic/$IGLUCTL_ZIP"
SCHEMAS_PATH="$TRAVIS_BUILD_DIR/iglu-central/schemas/"

git clone https://github.com/snowplow/iglu-central.git

docker run \
-p 8080:8080 \
-v $TRAVIS_BUILD_DIR/.travis:/iglu \
--rm -d \
snowplow-docker-registry.bintray.io/snowplow/iglu-server:0.6.0-rc16 \
--config /iglu/server.conf

wget $IGLUCTL_URI
unzip -j $IGLUCTL_ZIP

echo "Waiting for Iglu Server..."
sleep 6

./igluctl static push \
$SCHEMAS_PATH \
http://localhost:8080/ \
48b267d7-cd2b-4f22-bae4-0f002008b5ad \
--public
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ object ShredJobSpec {
|"vendorPrefixes": [ "com.snowplowanalytics" ],
|"connection": {
|"http": {
|"uri": "http://localhost:8083/api"
|"uri": "http://localhost:8080/api"
|}
|}
|},
Expand Down

0 comments on commit 13effcd

Please sign in to comment.