Fix Linux build and set up travis (#119)

* Add missing progress functions

* eslint fails so disable

* Correct case

* Fix copy commands

* Set up travis
pull/123/head
ta264 7 years ago committed by Qstick
parent c3d5419028
commit e1e7cad951

@ -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

@ -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'

@ -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';

@ -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 {

@ -179,12 +179,12 @@
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent Condition="('$(OS)' == 'Windows_NT')">
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)"
</PostBuildEvent>
<PostBuildEvent Condition="('$(OS)' != 'Windows_NT')">
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)
</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

Loading…
Cancel
Save