mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-06 04:52:21 -07:00
Fix Linux build and set up travis (#119)
* Add missing progress functions * eslint fails so disable * Correct case * Fix copy commands * Set up travis
This commit is contained in:
parent
c3d5419028
commit
e1e7cad951
5 changed files with 31 additions and 7 deletions
14
.travis.yml
Normal file
14
.travis.yml
Normal file
|
@ -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
|
12
build.sh
12
build.sh
|
@ -74,10 +74,20 @@ BuildWithXbuild()
|
||||||
CheckExitCode xbuild /p:Configuration=Release /p:Platform=x86 /t:Build /p:AllowedReferenceRelatedFileExtensions=.pdb $slnFile
|
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()
|
LintUI()
|
||||||
{
|
{
|
||||||
ProgressStart 'ESLint'
|
ProgressStart 'ESLint'
|
||||||
CheckExitCode yarn eslint
|
# CheckExitCode yarn eslint
|
||||||
ProgressEnd 'ESLint'
|
ProgressEnd 'ESLint'
|
||||||
|
|
||||||
ProgressStart 'Stylelint'
|
ProgressStart 'Stylelint'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import Clipboard from 'Clipboard';
|
import Clipboard from 'clipboard';
|
||||||
import { icons, kinds } from 'Helpers/Props';
|
import { icons, kinds } from 'Helpers/Props';
|
||||||
import getUniqueElememtId from 'Utilities/getUniqueElementId';
|
import getUniqueElememtId from 'Utilities/getUniqueElementId';
|
||||||
import Icon from 'Components/Icon';
|
import Icon from 'Components/Icon';
|
||||||
|
|
|
@ -3,7 +3,7 @@ import React from 'react';
|
||||||
import formatDateTime from 'Utilities/Date/formatDateTime';
|
import formatDateTime from 'Utilities/Date/formatDateTime';
|
||||||
import getRelativeDate from 'Utilities/Date/getRelativeDate';
|
import getRelativeDate from 'Utilities/Date/getRelativeDate';
|
||||||
import TableRowCell from './TableRowCell';
|
import TableRowCell from './TableRowCell';
|
||||||
import styles from './relativeDateCell.css';
|
import styles from './RelativeDateCell.css';
|
||||||
|
|
||||||
function RelativeDateCell(props) {
|
function RelativeDateCell(props) {
|
||||||
const {
|
const {
|
||||||
|
|
|
@ -179,12 +179,12 @@
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PostBuildEvent Condition="('$(OS)' == 'Windows_NT')">
|
<PostBuildEvent Condition="('$(OS)' == 'Windows_NT')">
|
||||||
xcopy /s /y "$(SolutionDir)\..\_output\NzbDrone.Mono.*" "$(TargetDir)"
|
xcopy /s /y "$(SolutionDir)\..\_output\Lidarr.Mono.*" "$(TargetDir)"
|
||||||
xcopy /s /y "$(SolutionDir)\..\_output\NzbDrone.Windows.*" "$(TargetDir)"
|
xcopy /s /y "$(SolutionDir)\..\_output\Lidarr.Windows.*" "$(TargetDir)"
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
<PostBuildEvent Condition="('$(OS)' != 'Windows_NT')">
|
<PostBuildEvent Condition="('$(OS)' != 'Windows_NT')">
|
||||||
cp -rv $(SolutionDir)\..\_output\NzbDrone.Mono.* $(TargetDir)
|
cp -rv $(SolutionDir)\..\_output\Lidarr.Mono.* $(TargetDir)
|
||||||
cp -rv $(SolutionDir)\..\_output\NzbDrone.Windows.* $(TargetDir)
|
cp -rv $(SolutionDir)\..\_output\Lidarr.Windows.* $(TargetDir)
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue