-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
316 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ tests/junit-log.xml | |
bdd-log.xml | ||
tests.xml | ||
bdd-lib.xml | ||
.scannerwork/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
sudo: required | ||
|
||
notifications: | ||
email: false | ||
env: | ||
global: | ||
- CHANNEL=dev | ||
|
||
services: | ||
- docker | ||
|
||
# dist: trusty | ||
|
||
addons: | ||
sonarqube: true | ||
|
||
jdk: | ||
- oraclejdk8 | ||
|
||
before_install: | ||
# Load cached docker images | ||
- if [[ -d $HOME/docker ]]; then ls $HOME/docker/*.tar.gz | xargs -I {file} sh -c "zcat {file} | docker load"; fi | ||
|
||
before_cache: | ||
# Save tagged docker images | ||
- > | ||
mkdir -p $HOME/docker && docker images -a --filter='dangling=false' --format '{{.Repository}}:{{.Tag}} {{.ID}}' | ||
| xargs -n 2 -t sh -c 'test -e $HOME/docker/$1.tar.gz || docker save $0 | gzip -2 > $HOME/docker/$1.tar.gz' | ||
install: | ||
- docker pull evilbeaver/onescript:$OSCRIPT_DOCKER_TAG | ||
|
||
cache: | ||
directories: | ||
- '$HOME/.m2/repository' | ||
- '$HOME/.sonar/cache' | ||
- '$HOME/docker' | ||
jobs: | ||
include: | ||
- stage: Тестирование | ||
script: | ||
- docker version | ||
- docker run -it -v $(pwd):/work_dir evilbeaver/onescript:$OSCRIPT_DOCKER_TAG sh -c 'cd /work_dir; sh /work_dir/travis-ci.sh; exit' | tee /tmp/test.log | ||
- grep 'Результат прогона тестов <Да>' /tmp/test.log | ||
- grep 'Результат прогона основных фич <Да>' /tmp/test.log | ||
- grep 'Результат прогона библиотечных фич <Да>' /tmp/test.log | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) | ||
- bash ./travis-sonarqube.sh | ||
|
||
# - stage: Сборка и публикация github & hub.oscript.io | ||
# script: skip | ||
# before_deploy: | ||
# # - sh -c 'opm build ./ ; exit' | ||
# - docker run -it -v $(pwd):/work_dir evilbeaver/onescript:$OSCRIPT_DOCKER_TAG sh -c 'cd /work_dir; opm build ./ ; exit' | ||
# deploy: | ||
# - provider: releases | ||
# api_key: "$GITHUB_OAUTH_TOKEN" | ||
# file_glob: true | ||
# file: 1bdd*.ospx | ||
# skip_cleanup: true | ||
# on: | ||
# branch: master | ||
# tags: true | ||
# - provider: script | ||
# skip_cleanup: true | ||
# # script: sh -c 'opm push --token $GITHUB_OAUTH_TOKEN --channel dev --file ./1bdd-*.ospx; exit' | ||
# script: docker run -it -v $(pwd):/work_dir evilbeaver/onescript:$OSCRIPT_DOCKER_TAG sh -c 'cd /work_dir; opm push --token $GITHUB_OAUTH_TOKEN --channel dev --file ./1bdd-*.ospx; exit' | ||
# on: | ||
# branch: develop | ||
# - provider: script | ||
# skip_cleanup: true | ||
# # script: sh -c 'opm push --token $GITHUB_OAUTH_TOKEN --channel stable --file ./1bdd-*.ospx; exit' | ||
# script: docker run -it -v $(pwd):/work_dir evilbeaver/onescript:$OSCRIPT_DOCKER_TAG sh -c 'cd /work_dir; opm push --token $GITHUB_OAUTH_TOKEN --channel stable --file ./1bdd-*.ospx; exit' | ||
# on: | ||
# branch: master | ||
# tags: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.