Fix Travis test (#490)

* Use `web-apps-pro`
* Use correct branch for web-apps-pro if exists
* Mount common script folder to tests
This commit is contained in:
Pavel Lobashov
2019-03-30 12:45:12 +03:00
committed by GitHub
parent a73696215e
commit aabc5c8493

View File

@ -5,7 +5,10 @@ language: node_js
node_js:
- '6'
before_script:
- git clone -b develop https://github.com/ONLYOFFICE/web-apps.git ../web-apps
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- echo "Project branch $BRANCH"
- git clone -b develop https://github.com/ONLYOFFICE/web-apps-pro.git ../web-apps-pro
- cd ../web-apps-pro && git checkout -B $BRANCH && cd -
jobs:
include:
- stage: SonarQube Scanner
@ -24,7 +27,8 @@ jobs:
- npm install --prefix build
- grunt --level=WHITESPACE_ONLY --base build --gruntfile build/Gruntfile.js
- docker pull onlyofficetestingrobot/doc-builder-testing:develop-latest
- travis_wait 30 docker run -v $PWD/word:/opt/onlyoffice/documentbuilder/sdkjs/word
- travis_wait 30 docker run -v $PWD/common:/opt/onlyoffice/documentbuilder/sdkjs/common
-v $PWD/word:/opt/onlyoffice/documentbuilder/sdkjs/word
-v $PWD/cell:/opt/onlyoffice/documentbuilder/sdkjs/cell
-v $PWD/slide:/opt/onlyoffice/documentbuilder/sdkjs/slide
onlyofficetestingrobot/doc-builder-testing:develop-latest