Diff of /appveyor.yml [000000] .. [3b2327]

Switch to unified view

a b/appveyor.yml
1
# Neuroconductor Template
2
# DO NOT CHANGE the "init" and "install" sections below
3
4
# Download script file from GitHub
5
init:
6
  ps: |
7
        $ErrorActionPreference = "Stop"
8
        Invoke-WebRequest http://raw.github.com/krlmlr/r-appveyor/master/scripts/appveyor-tool.ps1 -OutFile "..\appveyor-tool.ps1"
9
        Import-Module '..\appveyor-tool.ps1'
10
11
environment:
12
  global:
13
    USE_RTOOLS: true
14
    R_CHECK_INSTALL_ARGS: "--install-args=--build --no-multiarch "
15
    WARNINGS_ARE_ERRORS: 1
16
17
install:
18
  - ps: Bootstrap
19
20
cache:
21
  - C:\RLibrary
22
23
# Adapt as necessary starting from here
24
build_script:
25
  # need to move to higher dir because CMake path req
26
  - mkdir C:\run
27
  - cp -avr * C:\run
28
  # need the tool a level above
29
  - cp ../travis-tool.sh C:\
30
  - cd C:\run
31
  # - ps: Invoke-WebRequest http://ci.appveyor.com/api/buildjobs/tu3s6m73682lhvc1/artifacts/ITKR_0.4.12.3.zip -OutFile ".\ITKR.zip"
32
  - ps: Invoke-WebRequest https://github.com/muschellij2/ITKR/releases/download/v0.4.12.2/ITKR_0.4.12.2.zip -OutFile ".\ITKR.zip"
33
  - ls
34
  - Rscript -e "install.packages('ITKR.zip', repos = NULL)"  
35
  - rm ITKR.zip
36
  # - ps: Invoke-WebRequest https://github.com/muschellij2/ANTsRCore/releases/download/v0.4.12.2/ITKR_0.4.12.2.zip -OutFile ".\ITKR.zip"
37
  # - ls
38
  # - Rscript -e "install.packages('ANTsRCore.zip', repos = NULL)"  
39
  # - rm ANTsRCore.zip  
40
  # - ps: Invoke-WebRequest https://github.com/muschellij2/ANTsRCore/releases/download/v0.4.12.2/ITKR_0.4.12.2.zip -OutFile ".\ITKR.zip"
41
  # - ls
42
  # - Rscript -e "install.packages('ANTsR.zip', repos = NULL)"  
43
  # - rm ANTsR.zip  
44
  # setting PATH to be specific - no MinGW overall - just R's
45
  - set PATH=C:\Rtools\bin;C:\Rtools\MinGW\bin;
46
  - set PATH=%PATH%;C:\Rtools\mingw_64\bin;
47
  - set PATH=%PATH%;C:\Program Files\Git\cmd;
48
  - set PATH=%PATH%;"C:\Program Files (x86)\CMake\bin";
49
  - set PATH=%PATH%;C:\R\bin\i386;  
50
  - set PATH=%PATH%;C:\Program Files\Git\usr\bin  
51
  - set PATH=%PATH%;C:\Users\appveyor\AppData\Roaming\npm
52
  - set PATH=%PATH%;C:\Users\appveyor\AppData\Local\Yarn\bin
53
  - set PATH=%PATH%;C:\Program Files\AppVeyor\BuildAgent\
54
  - set PATH=%PATH%;C:\Windows\system32
55
  - set PATH=%PATH%;C:\Windows
56
  - set PATH=%PATH%;C:\Windows\System32\Wbem
57
  - set PATH=%PATH%;C:\Windows\System32\WindowsPowerShell\v1.0\
58
  - set PATH=%PATH%;C:\Program Files\7-Zip
59
  - travis-tool.sh install_deps
60
61
test_script:
62
  - travis-tool.sh run_tests
63
  - ls
64
  - cp -r C:/run/* %APPVEYOR_BUILD_FOLDER%
65
  - cd %APPVEYOR_BUILD_FOLDER%
66
  - ls
67
68
69
on_failure:
70
  - 7z a failure.zip *.Rcheck\*
71
  - appveyor PushArtifact failure.zip
72
73
artifacts:
74
  - path: '*.Rcheck\**\*.log'
75
    name: Logs
76
77
  - path: '*.Rcheck\**\*.zip'
78
    name: Bits    
79
80
  - path: '*.Rcheck\**\*.out'
81
    name: Logs
82
83
  - path: '*.Rcheck\**\*.fail'
84
    name: Logs
85
86
  - path: '*.Rcheck\**\*.Rout'
87
    name: Logs
88
89
  - path: '\*_*.zip'
90
    name: Bits
91
92
deploy:
93
  provider: GitHub
94
  description: 'Windows Binary'
95
  auth_token:
96
    secure: dUI5DBS31Kfp6DIqx8NSxsyTkOOXbF5QkW6vi+++/smzii3mGky/YYRTA9KJX+1Z
97
  draft: false
98
  prerelease: false
99
  on:
100
    appveyor_repo_tag: true