Skip to content

Commit

Permalink
made travis multistage to test for image building
Browse files Browse the repository at this point in the history
  • Loading branch information
silvae86 committed Apr 11, 2020
1 parent 478933b commit 0091692
Showing 1 changed file with 24 additions and 18 deletions.
42 changes: 24 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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"

0 comments on commit 0091692

Please sign in to comment.