Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WiP] CI Pipeline #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
language: generic
services:
- docker

# Build the docker image
script:
- travis_fold start docker_compose
- docker-compose up -d
- sleep 300 # I don't like it too
- docker-compose ps
- docker-compose exec backend echo 'Still alive!' || { echo "Backend is down"; exit 1; }
- travis_fold end docker_compose
- travis_fold start test
- docker run --network killrvideo-all-in-one_default killrvideo/killrvideo-integration-tests
- travis_fold end test

# If successful, see if we need to publish also
after_success: ~
# - "[ \"$TRAVIS_EVENT_TYPE\" = \"cron\" ] && { echo \"Ignore nightly builds\"; travis_terminate 0; }"
# - test -z $TRAVIS_TAG && { echo "Ignore non-tagged builds"; travis_terminate 0; }
# - docker tag ${TRAVIS_COMMIT} killrvideo/killrvideo-python:${TRAVIS_TAG}
# - echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
# - docker push killrvideo/killrvideo-python:${TRAVIS_TAG}
# - "[ \"$(git tag --sort=-v:refname | grep -P \"^\\d+.\\d+.\\d+$\" | head -n1)\" == \"$TRAVIS_TAG\" ] && { docker tag ${TRAVIS_COMMIT} killrvideo/killrvideo-python:latest; docker push killrvideo/killrvideo-python:latest; }"

after_failure: ~
# - travis_fold start logs
# - docker-compose -f docker-compose.ci.yml logs dse-config backend
# - travis_fold end logs
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
kompose.service.type: nodeport # Adds a label for Kompose to expose service externally

backend: # KillrVideo Backend
image: killrvideo/killrvideo-java:3.0.0
image: killrvideo/killrvideo-java:3.0.1
ports:
- "50101:50101" # Exposes port to be available. Kompose tool needs that to create a k8s service and make backend available for other services.
depends_on:
Expand Down