-
Notifications
You must be signed in to change notification settings - Fork 1
Testing Workflow | Restructure repositories #268
Comments
working language: python
python: 3.6
services: docker
stages:
# unit tests will run on push and PR
- name: unit_tests
if: type IN (push, pull_request)
# integration tests will run on push and PR
- name: integration_tests
if: type IN (pull_request)
jobs:
include:
- stage: unit_tests
python: 3.6
before_script:
- pip install tox-travis
script: tox
- stage: integration_tests
before_script:
- git clone https://github.com/repo/LocalEGA-deploy.git
- cd LocalEGA-deploy && mkdir -p LocalEGA && cp -r ../lega LocalEGA/
- cd docker
- make bootstrap
- sudo chown -R travis private
- docker network create cega
- docker-compose up -d ${DOCKER_CONTAINERS}
- docker-compose ps
script:
- sleep 10
- cd ../tests
- mvn test -B
notifications:
email: false |
Looks good! |
Is that on the LocalEGA repo, or on the new LocalEGA-deploy repo? In my understanding the LocalEGA repo would have a rather minimal .travis file that runs the tox tests. The LocalEGA-deploy would have a more complex .travis, that pulls the LocalEGA repo, and connects everything together (including bootstrapping). It looks like the one above, but then I do not understand the git clone, since it is what travis is going to run, but with a given commit. Help me understand, please. |
All tests should be run on the main repo, otherwise, we can't have PR hooks (blocked PRs if tests fail). So it's for LocalEGA repo. |
BTW, @blankdots, don't forget Slack integration, as we have it currently. |
In order to streamline the development, testing and build workflow we are aiming to split the LocalEGA repository as follows:
deployment/
folder along with integration tests to another repo e.g.LocalEGA-deploy
LocalEGA-deploy
replace fake Eureka server with the Spring Eureka versionWhat we are aiming to achieve is (assuming tests pass):
Travis resources:
The text was updated successfully, but these errors were encountered: