<commit_before>language: csharp
solution: Duplicati.sln
install:
  - nuget restore Duplicati.sln
  - nuget install NUnit.Runners -Version 3.5.0 -OutputDirectory testrunner
  - sudo pip install selenium
addons:
  sauce_connect:
    username: $SAUCE_USERNAME
    access_key: $SAUCE_ACCESS_KEY
env:
  general:
    - USAGEREPORTER_Duplicati_LEVEL=none
    - AUTOUPDATER_Duplicati_SKIP_UPDATE=1
  matrix:
  - JOB=job1
  - JOB=job2
  - JOB=job3
notifications:
  webhooks:
    urls:
      - $GITTER_WEBHOOK_URL
    on_success: always
    on_failure: always
    on_start: never

cache:
  directories:
    - $HOME/download

script:
# build duplicati
  - echo "travis_fold:start:build_duplicati"
  - xbuild /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 ~/download ]; then mkdir ~/download; fi
  - if [ ! -f ~/download/DSMCBE.zip ]; then wget "https://s3.amazonaws.com/duplicati-test-file-hosting/DSMCBE.zip" -O ~/download/DSMCBE.zip; fi
  - if [ ! -f ~/download/data.zip ]; then wget "https://s3.amazonaws.com/duplicati-test-file-hosting/data.zip" -O ~/download/data.zip; fi
  - ls -la .
  - mkdir ~/testdata
  - mkdir ~/testdata/data
  - mkdir ~/testdata/DSMCBE
  - unzip -q ~/download/DSMCBE.zip -d ~/testdata/
  - unzip -q ~/download/data.zip -d ~/testdata/
  - 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_tests_border"
  - if [[ "$JOB" == "job1" ]]; then mono ./testrunner/NUnit.ConsoleRunner.3.5.0/tools/nunit3-console.exe ./Duplicati/UnitTest/bin/Release/Duplicati.UnitTest.dll --where:cat==Border --workers=1; fi
  - echo "travis_fold:end:unit_tests_border"
  - echo "travis_fold:start:unit_tests_bulknormal"
  - if [[ "$JOB" == "job2" ]]; then mono ./testrunner/NUnit.ConsoleRunner.3.5.0/tools/nunit3-console.exe ./Duplicati/UnitTest/bin/Release/Duplicati.UnitTest.dll --where:cat==BulkNormal --workers=1; fi
  - echo "travis_fold:end:unit_tests_bulknormal"
  - echo "travis_fold:start:unit_tests_bulknosize"
  - if [[ "$JOB" == "job2" ]]; then mono ./testrunner/NUnit.ConsoleRunner.3.5.0/tools/nunit3-console.exe ./Duplicati/UnitTest/bin/Release/Duplicati.UnitTest.dll --where:cat==BulkNoSize --workers=1; fi
  - echo "travis_fold:end:unit_tests_bulknosize"
  - echo "travis_fold:start:unit_tests_svndata"
  - if [[ "$JOB" == "job1" ]]; then mono ./testrunner/NUnit.ConsoleRunner.3.5.0/tools/nunit3-console.exe ./Duplicati/UnitTest/bin/Release/Duplicati.UnitTest.dll --where:cat==SVNData --workers=1; fi
  - echo "travis_fold:end:unit_tests_svndata"
  - echo "travis_fold:start:unit_tests_svndatalong"
  - if [[ "$JOB" == "job1" ]]; then mono ./testrunner/NUnit.ConsoleRunner.3.5.0/tools/nunit3-console.exe ./Duplicati/UnitTest/bin/Release/Duplicati.UnitTest.dll --where:cat==SVNDataLong --workers=1; fi
  - echo "travis_fold:end:unit_tests_svndatalong"
  - echo "travis_fold:start:unit_tests_targeted"
  - if [[ "$JOB" == "job1" ]]; then mono ./testrunner/NUnit.ConsoleRunner.3.5.0/tools/nunit3-console.exe ./Duplicati/UnitTest/bin/Release/Duplicati.UnitTest.dll --where:cat==Targeted --workers=1; fi
  - echo "travis_fold:end:unit_tests_targeted"
  - echo "travis_fold:start:unit_tests_purge"
  - if [[ "$JOB" == "job3" ]]; then mono ./testrunner/NUnit.ConsoleRunner.3.5.0/tools/nunit3-console.exe ./Duplicati/UnitTest/bin/Release/Duplicati.UnitTest.dll --where:cat==Purge --workers=1; fi
  - echo "travis_fold:end:unit_tests_purge"
# start server and run gui tests
  - if [[ "$JOB" == "job3" ]]; mono ./Duplicati/GUI/Duplicati.GUI.TrayIcon/bin/Release/Duplicati.Server.exe &; fi
  - if [[ "$JOB" == "job3" ]]; then python guiTests/guiTest.py; fi
  <commit_msg>Fixed travis script<commit_after>language: csharp
solution: Duplicati.sln
install:
  - nuget restore Duplicati.sln
  - nuget install NUnit.Runners -Version 3.5.0 -OutputDirectory testrunner
  - sudo pip install selenium
addons:
  sauce_connect:
    username: $SAUCE_USERNAME
    access_key: $SAUCE_ACCESS_KEY
env:
  general:
    - USAGEREPORTER_Duplicati_LEVEL=none
    - AUTOUPDATER_Duplicati_SKIP_UPDATE=1
  matrix:
  - JOB=job1
  - JOB=job2
  - JOB=job3
notifications:
  webhooks:
    urls:
      - $GITTER_WEBHOOK_URL
    on_success: always
    on_failure: always
    on_start: never

cache:
  directories:
    - $HOME/download

script:
# build duplicati
  - echo "travis_fold:start:build_duplicati"
  - xbuild /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 ~/download ]; then mkdir ~/download; fi
  - if [ ! -f ~/download/DSMCBE.zip ]; then wget "https://s3.amazonaws.com/duplicati-test-file-hosting/DSMCBE.zip" -O ~/download/DSMCBE.zip; fi
  - if [ ! -f ~/download/data.zip ]; then wget "https://s3.amazonaws.com/duplicati-test-file-hosting/data.zip" -O ~/download/data.zip; fi
  - ls -la .
  - mkdir ~/testdata
  - mkdir ~/testdata/data
  - mkdir ~/testdata/DSMCBE
  - unzip -q ~/download/DSMCBE.zip -d ~/testdata/
  - unzip -q ~/download/data.zip -d ~/testdata/
  - 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_tests_border"
  - if [[ "$JOB" == "job1" ]]; then mono ./testrunner/NUnit.ConsoleRunner.3.5.0/tools/nunit3-console.exe ./Duplicati/UnitTest/bin/Release/Duplicati.UnitTest.dll --where:cat==Border --workers=1; fi
  - echo "travis_fold:end:unit_tests_border"
  - echo "travis_fold:start:unit_tests_bulknormal"
  - if [[ "$JOB" == "job2" ]]; then mono ./testrunner/NUnit.ConsoleRunner.3.5.0/tools/nunit3-console.exe ./Duplicati/UnitTest/bin/Release/Duplicati.UnitTest.dll --where:cat==BulkNormal --workers=1; fi
  - echo "travis_fold:end:unit_tests_bulknormal"
  - echo "travis_fold:start:unit_tests_bulknosize"
  - if [[ "$JOB" == "job2" ]]; then mono ./testrunner/NUnit.ConsoleRunner.3.5.0/tools/nunit3-console.exe ./Duplicati/UnitTest/bin/Release/Duplicati.UnitTest.dll --where:cat==BulkNoSize --workers=1; fi
  - echo "travis_fold:end:unit_tests_bulknosize"
  - echo "travis_fold:start:unit_tests_svndata"
  - if [[ "$JOB" == "job1" ]]; then mono ./testrunner/NUnit.ConsoleRunner.3.5.0/tools/nunit3-console.exe ./Duplicati/UnitTest/bin/Release/Duplicati.UnitTest.dll --where:cat==SVNData --workers=1; fi
  - echo "travis_fold:end:unit_tests_svndata"
  - echo "travis_fold:start:unit_tests_svndatalong"
  - if [[ "$JOB" == "job1" ]]; then mono ./testrunner/NUnit.ConsoleRunner.3.5.0/tools/nunit3-console.exe ./Duplicati/UnitTest/bin/Release/Duplicati.UnitTest.dll --where:cat==SVNDataLong --workers=1; fi
  - echo "travis_fold:end:unit_tests_svndatalong"
  - echo "travis_fold:start:unit_tests_targeted"
  - if [[ "$JOB" == "job1" ]]; then mono ./testrunner/NUnit.ConsoleRunner.3.5.0/tools/nunit3-console.exe ./Duplicati/UnitTest/bin/Release/Duplicati.UnitTest.dll --where:cat==Targeted --workers=1; fi
  - echo "travis_fold:end:unit_tests_targeted"
  - echo "travis_fold:start:unit_tests_purge"
  - if [[ "$JOB" == "job3" ]]; then mono ./testrunner/NUnit.ConsoleRunner.3.5.0/tools/nunit3-console.exe ./Duplicati/UnitTest/bin/Release/Duplicati.UnitTest.dll --where:cat==Purge --workers=1; fi
  - echo "travis_fold:end:unit_tests_purge"
# start server and run gui tests
  - mono ./Duplicati/GUI/Duplicati.GUI.TrayIcon/bin/Release/Duplicati.Server.exe &
  - if [[ "$JOB" == "job3" ]]; then python guiTests/guiTest.py; fi
  
{'fraction_non_alphanumeric': 0.15406794534286072, 'fraction_numerical': 0.013915005641218503, 'mean_word_length': 3.8176328502415457, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4455864', 'n_tokens_mistral': 3217, 'n_tokens_neox': 3178, 'n_words': 498}