Commit 4184df7a authored by Aleksandr Guljajev's avatar Aleksandr Guljajev

Quiet maven good maven

parent 1e289b40
......@@ -11,10 +11,10 @@ env:
script:
- set -e
- ./scripts/build.sh;
- travis_wait ./scripts/build.sh;
- ./test/test.sh unit.py
- ./test/test.sh component.py
# - ./test/test.sh container.py --tag $TAG
- ./test/test.sh container.py --tag $TAG
after_success:
- set -e;
......
......@@ -21,7 +21,7 @@ else
fi
CODE_DIR=$(cd $SCRIPT_DIR/..; pwd)
echo $CODE_DIR
$DOCKER_CMD run --rm -v $HOME/.m2:/root/.m2 -v $CODE_DIR:/usr/src/mymaven -w /usr/src/mymaven maven:3.2-jdk-8 mvn -DskipTests package
$DOCKER_CMD run --rm -v $HOME/.m2:/root/.m2 -v $CODE_DIR:/usr/src/mymaven -w /usr/src/mymaven maven:3.2-jdk-8 mvn -q -DskipTests package
cp $CODE_DIR/target/*.jar $CODE_DIR/docker/cart
......
......@@ -42,6 +42,7 @@ class CartContainerTest(unittest.TestCase):
out = Dredd().test_against_endpoint("cart", "http://cart/", links=[self.mongo_container_name, self.container_name], env=[("MONGO_ENDPOINT", "mongodb://cart-db:27017/data")])
self.assertGreater(out.find("0 failing"), -1)
self.assertGreater(out.find("0 errors"), -1)
print(out)
if __name__ == '__main__':
parser = argparse.ArgumentParser()
......
......@@ -4,7 +4,7 @@ import os
import unittest
class Dredd:
image = 'weaveworksdemos/openapi'
image = 'weaveworksdemos/openapi:d18f10abf792775b21b1ac555c7c83dbec40119f'
container_name = ''
def test_against_endpoint(self, service, api_endpoint, links=[], env=[]):
self.container_name = Docker().random_container_name('openapi')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment