Skip to content

Commit

Permalink
uncommented stuff to test a full build
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Mar 24, 2020
1 parent e00f006 commit 8520a3d
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 59 deletions.
10 changes: 5 additions & 5 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ install:
- set PYTHON_VERSION=%CONFIGURATION%
- ps: >-
switch ($env:PYTHON_VERSION) {
"2.7" {$env:MINICONDA = "C:\Miniconda-x64"}
"3.5" {$env:MINICONDA = "C:\Miniconda35-x64"}
"3.6" {$env:MINICONDA = "C:\Miniconda36-x64"}
"3.7" {$env:MINICONDA = "C:\Miniconda37-x64"}
default {$env:MINICONDA = "C:\Miniconda37-x64"}
"2.7" {$env:MINICONDA = """C:\Miniconda-x64"""}
"3.5" {$env:MINICONDA = """C:\Miniconda35-x64"""}
"3.6" {$env:MINICONDA = """C:\Miniconda36-x64"""}
"3.7" {$env:MINICONDA = """C:\Miniconda37-x64"""}
default {$env:MINICONDA = """C:\Miniconda37-x64"""}
}
$env:PATH="$env:MINICONDA;$env:MINICONDA\Scripts;$env:PATH"
- ps: $env:LGB_VER = (Get-Content VERSION.txt).trim()
Expand Down
17 changes: 3 additions & 14 deletions .ci/test_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -81,24 +81,16 @@ if (($env:TASK -eq "regular") -or ($env:TASK -eq "appveyor-python")) {
}

# test R package
# based on https://github.com/RGF-team/rgf/blob/master/R-package/.R.appveyor.ps1
if ($env:TASK -eq "r-package"){

$env:R_LIB_PATH = "C:/RLibrary"
$env:R_LIBS = "$env:R_LIB_PATH/R/library"
Write-Output "R_LIB_PATH: $env:R_LIB_PATH"
Write-Output "R_LIBS: $env:R_LIBS"
$env:PATH = "$env:R_LIB_PATH/Rtools/bin;" + "$env:R_LIB_PATH/R/bin/x64;" + "$env:R_LIB_PATH/miktex/texmfs/install/miktex/bin/x64;" + $env:PATH
$env:BINPREF = "C:/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/"

cd $env:BUILD_SOURCESDIRECTORY

tzutil /s "GMT Standard Time"

[Void][System.IO.Directory]::CreateDirectory($env:R_LIB_PATH)

#$env:PATH = "$env:R_LIB_PATH\Rtools\bin;" + "$env:R_LIB_PATH\R\bin\x64;" + "$env:R_LIB_PATH\R\R-$env:R_WINDOWS_VERSION\bin\x64;" + "$env:R_LIB_PATH\R\R-$env:R_WINDOWS_VERSION\bin;" + "$env:R_LIB_PATH\miktex\texmfs\install\miktex\bin\x64;" + $env:PATH
$env:PATH = "$env:R_LIB_PATH/Rtools/bin;" + "$env:R_LIB_PATH/R/bin/x64;" + "$env:R_LIB_PATH/miktex/texmfs/install/miktex/bin/x64;" + $env:PATH
$env:BINPREF = "C:/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/"

# set up R if it doesn't exist yet
if (!(Get-Command R.exe -errorAction SilentlyContinue)) {

Expand Down Expand Up @@ -138,12 +130,9 @@ if ($env:TASK -eq "r-package"){
Add-Content .Rprofile "options(install.packages.check.source = 'no')"

Write-Output "Installing dependencies"
Rscript.exe -e "install.packages(c('data.table', 'jsonlite', 'Matrix', 'R6', 'testthat'), dependencies = c('Imports', 'Depends', 'LinkingTo'), lib = '$env:R_LIBS')" ; Check-Output $?
Rscript.exe -e "install.packages(c('data.table', 'jsonlite', 'Matrix', 'R6', 'testthat'), dependencies = c('Imports', 'Depends', 'LinkingTo'), lib = '$env:R_LIB_PATH')" ; Check-Output $?

Write-Output "Building R package"
Rscript --no-save -e "print(.libPaths())"
Rscript --no-save -e "print('loading R6'); library(R6)"
Rscript --no-save -e "print('R_LIBS'); print(Sys.getenv('R_LIBS'))"
Rscript build_r.R ; Check-Output $?

$PKG_FILE_NAME = Get-Item *.tar.gz
Expand Down
28 changes: 14 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@ env:
global: # default values
- PYTHON_VERSION=3.7
matrix:
# - TASK=regular PYTHON_VERSION=3.6
# - TASK=sdist PYTHON_VERSION=2.7
# - TASK=bdist
# - TASK=if-else
# - TASK=lint
# - TASK=check-docs
# - TASK=mpi METHOD=source
# - TASK=mpi METHOD=pip
# - TASK=gpu METHOD=source PYTHON_VERSION=3.5
# - TASK=gpu METHOD=pip PYTHON_VERSION=3.6
- TASK=regular PYTHON_VERSION=3.6
- TASK=sdist PYTHON_VERSION=2.7
- TASK=bdist
- TASK=if-else
- TASK=lint
- TASK=check-docs
- TASK=mpi METHOD=source
- TASK=mpi METHOD=pip
- TASK=gpu METHOD=source PYTHON_VERSION=3.5
- TASK=gpu METHOD=pip PYTHON_VERSION=3.6
- TASK=r-package

matrix:
exclude:
# - os: osx
# env: TASK=gpu METHOD=source PYTHON_VERSION=3.5
# - os: osx
# env: TASK=gpu METHOD=pip PYTHON_VERSION=3.6
- os: osx
env: TASK=gpu METHOD=source PYTHON_VERSION=3.5
- os: osx
env: TASK=gpu METHOD=pip PYTHON_VERSION=3.6
- os: osx
env: TASK=lint
- os: osx
Expand Down
100 changes: 74 additions & 26 deletions .vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,24 @@ jobs:
strategy:
maxParallel: 6
matrix:
# regular:
# TASK: regular
# sdist:
# TASK: sdist
# PYTHON_VERSION: 3.5
# bdist:
# TASK: bdist
# PYTHON_VERSION: 3.6
# inference:
# TASK: if-else
# mpi_source:
# TASK: mpi
# METHOD: source
# PYTHON_VERSION: 2.7
# gpu_source:
# TASK: gpu
# METHOD: source
# PYTHON_VERSION: 3.6
regular:
TASK: regular
sdist:
TASK: sdist
PYTHON_VERSION: 3.5
bdist:
TASK: bdist
PYTHON_VERSION: 3.6
inference:
TASK: if-else
mpi_source:
TASK: mpi
METHOD: source
PYTHON_VERSION: 2.7
gpu_source:
TASK: gpu
METHOD: source
PYTHON_VERSION: 3.6
r_package:
TASK: r-package
steps:
Expand Down Expand Up @@ -78,14 +78,14 @@ jobs:
strategy:
maxParallel: 3
matrix:
# regular:
# TASK: regular
# PYTHON_VERSION: 3.6
# sdist:
# TASK: sdist
# PYTHON_VERSION: 3.5
# bdist:
# TASK: bdist
regular:
TASK: regular
PYTHON_VERSION: 3.6
sdist:
TASK: sdist
PYTHON_VERSION: 3.5
bdist:
TASK: bdist
r_package:
TASK: r-package
steps:
Expand Down Expand Up @@ -144,3 +144,51 @@ jobs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: PackageAssets
artifactType: container

# ###########################################
# - job: Package
# ###########################################
# dependsOn:
# - Linux
# - MacOS
# - Windows
# condition: and(succeeded(), not(startsWith(variables['Build.SourceBranch'], 'refs/pull/')))
# pool:
# vmImage: 'vs2017-win2016'
# steps:
# # Download all agent packages from all previous phases
# - task: DownloadBuildArtifacts@0
# displayName: Download package assets
# inputs:
# artifactName: PackageAssets
# downloadPath: $(Build.SourcesDirectory)/binaries
# - script: |
# python %BUILD_SOURCESDIRECTORY%/.nuget/create_nuget.py %BUILD_SOURCESDIRECTORY%/binaries/PackageAssets
# displayName: 'Create NuGet configuration files'
# - task: NuGetCommand@2
# inputs:
# command: pack
# packagesToPack: '$(Build.SourcesDirectory)/.nuget/*.nuspec'
# packDestination: '$(Build.ArtifactStagingDirectory)'
# - task: PublishBuildArtifacts@1
# inputs:
# pathtoPublish: '$(Build.ArtifactStagingDirectory)'
# artifactName: NuGet
# artifactType: container
# - task: GitHubRelease@0
# displayName: 'Create GitHub Release'
# condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
# inputs:
# gitHubConnection: guolinke
# repositoryName: '$(Build.Repository.Name)'
# action: 'create'
# target: '$(Build.SourceVersion)'
# tagSource: 'auto'
# title: '$(Build.SourceBranchName)'
# assets: |
# $(Build.SourcesDirectory)/binaries/PackageAssets/*
# $(Build.ArtifactStagingDirectory)/*.nupkg
# assetUploadMode: 'delete'
# isDraft: true
# isPreRelease: false
# addChangeLog: false

0 comments on commit 8520a3d

Please sign in to comment.