Browse Source

fixed network setup

tags/2.0.12
Tobias Munk 8 years ago
parent
commit
25cc36c524
  1. 2
      tests/docker-compose.yml
  2. 4
      tests/test-local.sh

2
tests/docker-compose.yml

@ -38,4 +38,4 @@ networks:
ipam:
driver: default
config:
- subnet: 10.99.${TUPLE_C}.1/24
- subnet: 10.100.1${TUPLE_C}.1/24

4
tests/test-local.sh

@ -1,8 +1,8 @@
#!/usr/bin/env bash
# Generate a "hash" from 0-200 for subnet tuple
# Generate a "hash" from 0-99 for subnet tuple (10, 11, ..., 199) - it's a hack
echo "Creating CI_BUILD_ID and CI_PIPELINE_ID from first argument..."
export CI_BUILD_ID=$(expr $((32#${1})) % 200)
export CI_BUILD_ID=$(expr $((32#${1})) % 99)
export CI_PIPELINE_ID=${1}
# Copy snippets from https://git.hrzg.de/ci/lint

Loading…
Cancel
Save