From 0091692be4b68f349135938625a78cc8bb8e1b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joa=CC=83o=20Rocha=20da=20Silva?= Date: Sat, 11 Apr 2020 19:35:17 +0100 Subject: [PATCH] made travis multistage to test for image building --- .travis.yml | 42 ++++++++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/.travis.yml b/.travis.yml index f614d4d51..627fcafd5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,21 +8,27 @@ services: python: - 3.7 -before_install: - - git clone https://github.com/eficode/wait-for.git - - docker-compose up -d - - cd wait-for - - ./wait-for 127.0.0.1:7474 -t 60 -- echo "Neo4J up 1" - - ./wait-for 127.0.0.1:7687 -t 60 -- echo "Neo4J up 2" - - cd .. - - sudo apt-get install jq - -install: - - ./conf/install.sh - -script: - - source "$HOME/miniconda/etc/profile.d/conda.sh" - - conda activate archgraph - - coverage run -m unittest discover test - - coverage report -m - - coveralls \ No newline at end of file +jobs: + include: + - stage: test + script: + - sudo apt-get install jq + - git clone https://github.com/eficode/wait-for.git + - docker-compose up -d + - cd wait-for + - ./wait-for 127.0.0.1:7474 -t 60 -- echo "Neo4J up 1" + - ./wait-for 127.0.0.1:7687 -t 60 -- echo "Neo4J up 2" + - cd .. + - ./conf/install.sh + - source "$HOME/miniconda/etc/profile.d/conda.sh" + - conda activate archgraph + - coverage run -m unittest discover test + - coverage report -m + - coveralls + - stage: test-docker-image + script: + - docker-compose build && docker-compose up -d + - git clone https://github.com/eficode/wait-for.git + - cd wait-for + - ./wait-for 127.0.0.1:4200 -t 60 -- echo "Archgraph Docker Frontend up" + - ./wait-for 127.0.0.1:5000 -t 60 -- echo "Archgraph Docker API up" \ No newline at end of file