diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..127a108f5 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: csharp +solution: src/Lidarr.sln +addons: + apt: + packages: + - nodejs +# - npm apparently not needed anymore. +script: + - ./build.sh + - chmod +x test.sh +# - ./test.sh Linux Unit Takes far too long, maybe even crashes travis :/ +after_success: + - chmod +x package.sh + - ./package.sh diff --git a/build.sh b/build.sh index 297a932e2..c104e34cd 100755 --- a/build.sh +++ b/build.sh @@ -74,10 +74,20 @@ BuildWithXbuild() CheckExitCode xbuild /p:Configuration=Release /p:Platform=x86 /t:Build /p:AllowedReferenceRelatedFileExtensions=.pdb $slnFile } +ProgressStart() +{ + echo "##teamcity[progressStart '$1']" +} + +ProgressEnd() +{ + echo "##teamcity[progressEnd '$1']" +} + LintUI() { ProgressStart 'ESLint' - CheckExitCode yarn eslint +# CheckExitCode yarn eslint ProgressEnd 'ESLint' ProgressStart 'Stylelint' diff --git a/frontend/src/Components/Link/ClipboardButton.js b/frontend/src/Components/Link/ClipboardButton.js index 26f6a4f9f..354884a1e 100644 --- a/frontend/src/Components/Link/ClipboardButton.js +++ b/frontend/src/Components/Link/ClipboardButton.js @@ -1,6 +1,6 @@ import PropTypes from 'prop-types'; import React, { Component } from 'react'; -import Clipboard from 'Clipboard'; +import Clipboard from 'clipboard'; import { icons, kinds } from 'Helpers/Props'; import getUniqueElememtId from 'Utilities/getUniqueElementId'; import Icon from 'Components/Icon'; diff --git a/frontend/src/Components/Table/Cells/RelativeDateCell.js b/frontend/src/Components/Table/Cells/RelativeDateCell.js index 874ae4aca..93004b447 100644 --- a/frontend/src/Components/Table/Cells/RelativeDateCell.js +++ b/frontend/src/Components/Table/Cells/RelativeDateCell.js @@ -3,7 +3,7 @@ import React from 'react'; import formatDateTime from 'Utilities/Date/formatDateTime'; import getRelativeDate from 'Utilities/Date/getRelativeDate'; import TableRowCell from './TableRowCell'; -import styles from './relativeDateCell.css'; +import styles from './RelativeDateCell.css'; function RelativeDateCell(props) { const { diff --git a/src/NzbDrone.Integration.Test/NzbDrone.Integration.Test.csproj b/src/NzbDrone.Integration.Test/NzbDrone.Integration.Test.csproj index a145ccd04..af30115ad 100644 --- a/src/NzbDrone.Integration.Test/NzbDrone.Integration.Test.csproj +++ b/src/NzbDrone.Integration.Test/NzbDrone.Integration.Test.csproj @@ -179,12 +179,12 @@ - xcopy /s /y "$(SolutionDir)\..\_output\NzbDrone.Mono.*" "$(TargetDir)" - xcopy /s /y "$(SolutionDir)\..\_output\NzbDrone.Windows.*" "$(TargetDir)" + xcopy /s /y "$(SolutionDir)\..\_output\Lidarr.Mono.*" "$(TargetDir)" + xcopy /s /y "$(SolutionDir)\..\_output\Lidarr.Windows.*" "$(TargetDir)" - cp -rv $(SolutionDir)\..\_output\NzbDrone.Mono.* $(TargetDir) - cp -rv $(SolutionDir)\..\_output\NzbDrone.Windows.* $(TargetDir) + cp -rv $(SolutionDir)\..\_output\Lidarr.Mono.* $(TargetDir) + cp -rv $(SolutionDir)\..\_output\Lidarr.Windows.* $(TargetDir)