Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorverhoek <hendrik@natural-transformations.com>2018-05-17 21:27:04 +0300
committerverhoek <hendrik@natural-transformations.com>2018-05-18 08:57:55 +0300
commitd9fc1cac08cd9741815739791dde581ae5644be7 (patch)
tree544298ade5ca7880d7e29c8de369bd2d74c05d21 /.travis.yml
parent92777a168b73759c7df58c0928333574b2bad12e (diff)
Moved travis script steps to separate bash script with trap on error, to prevent continuing executing further steps on error.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml38
1 files changed, 1 insertions, 37 deletions
diff --git a/.travis.yml b/.travis.yml
index bb59178ae..d6580239b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -66,40 +66,4 @@ before_install:
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
script:
-# build duplicati
- - ls -la "${TRAVIS_BUILD_DIR}"/packages/
- - echo "travis_fold:start:build_duplicati"
- - msbuild /p:Configuration=Release Duplicati.sln
- - echo "travis_fold:end:build_duplicati"
- - cp -r ./Duplicati/Server/webroot ./Duplicati/GUI/Duplicati.GUI.TrayIcon/bin/Release/webroot
-# download and extract testdata
- - echo "travis_fold:start:download_extract_testdata"
- - ls -la .
- - if [ ! -d ~/tmp ]; then mkdir ~/tmp; fi
- - if [ ! -d ~/download ]; then mkdir ~/download; fi
- - if [ ! -d ~/download/svn ]; then mkdir ~/download/svn; fi
- - if [ ! -d ~/download/bulk ]; then mkdir ~/download/bulk; fi
- - if [ ! -f ~/download/svn/DSMCBE.zip ] && ([ "$CATEGORY" == "SVNData" ] || [ "$CATEGORY" == "SVNDataLong" ]); then wget --progress=dot:giga "https://s3.amazonaws.com/duplicati-test-file-hosting/DSMCBE.zip" -O ~/download/svn/DSMCBE.zip; fi
- - if [ ! -f ~/download/bulk/data.zip ] && ([ "$CATEGORY" == "BulkNormal" ] || [ "$CATEGORY" == "BulkNoSize" ]); then wget --progress=dot:giga "https://s3.amazonaws.com/duplicati-test-file-hosting/data.zip" -O ~/download/bulk/data.zip; fi
- - ls -la .
- - mkdir ~/testdata
- - mkdir ~/testdata/data
- - mkdir ~/testdata/DSMCBE
- - if [ "$CATEGORY" == "SVNData" ] || [ "$CATEGORY" == "SVNDataLong" ]; then unzip -q ~/download/svn/DSMCBE.zip -d ~/testdata/; fi
- - if [ "$CATEGORY" == "BulkNormal" ] || [ "$CATEGORY" == "BulkNoSize" ]; then unzip -q ~/download/bulk/data.zip -d ~/testdata/; fi
- - chown -R travis ~/testdata/
- - chmod -R 755 ~/testdata
- - ls -la ~/testdata
- - ls -la ~/testdata/DSMCBE
- - ls -la ~/testdata/data
- - echo "travis_fold:end:download_extract_testdata"
-# run unit tests
- - echo "travis_fold:start:unit_test"
- - if [[ "$CATEGORY" != "GUI" ]]; then mono ./testrunner/NUnit.ConsoleRunner.3.5.0/tools/nunit3-console.exe ./Duplicati/UnitTest/bin/Release/Duplicati.UnitTest.dll --where:cat==$CATEGORY --workers=1; fi
- - echo "travis_fold:end:unit_test"
-# start server and run gui tests
- - echo "travis_fold:start:gui_unit_test"
- - mono ./Duplicati/GUI/Duplicati.GUI.TrayIcon/bin/Release/Duplicati.Server.exe &
- - if [[ "$CATEGORY" == "GUI" ]]; then python guiTests/guiTest.py; fi
- - echo "travis_fold:end:gui_unit_test"
-
+ - ./build.sh ${TRAVIS_BUILD_DIR} ${CATEGORY}