Setup CI
This commit is contained in:
parent
88d8ee6b84
commit
7c325683cc
1 changed files with 78 additions and 37 deletions
61
appveyor.yml
61
appveyor.yml
|
|
@ -1,17 +1,16 @@
|
||||||
version: '{build}'
|
version: '{build}'
|
||||||
|
|
||||||
cache:
|
image:
|
||||||
- c:\projects\i686-8.1.0-release-posix-dwarf-rt_v6-rev0.7z
|
- Visual Studio 2017
|
||||||
- c:\projects\mingw-w64-i686-libssh2-1.8.0-1-any.pkg.tar.xz
|
- Ubuntu
|
||||||
- c:\projects\mingw-w64-i686-openssl-1.0.2.o-1-any.pkg.tar.xz
|
|
||||||
- c:\projects\nim-0.18.0_x32.zip
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
matrix:
|
matrix:
|
||||||
- MINGW_DIR: mingw32
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||||
|
MINGW_DIR: mingw32
|
||||||
MINGW_URL: https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/8.1.0/threads-posix/dwarf/i686-8.1.0-release-posix-dwarf-rt_v6-rev0.7z/download
|
MINGW_URL: https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/8.1.0/threads-posix/dwarf/i686-8.1.0-release-posix-dwarf-rt_v6-rev0.7z/download
|
||||||
MINGW_ARCHIVE: i686-8.1.0-release-posix-dwarf-rt_v6-rev0.7z
|
MINGW_ARCHIVE: i686-8.1.0-release-posix-dwarf-rt_v6-rev0.7z
|
||||||
NIM_URL: https://nim-lang.org/download/nim-0.18.0_x32.zip
|
NIM_URL: https://nim-lang.org/download/nim-0.18.0_x32.zip
|
||||||
|
|
@ -27,6 +26,16 @@ environment:
|
||||||
DLLS_ARCHIVE: dlls.zip
|
DLLS_ARCHIVE: dlls.zip
|
||||||
BASE_DIR: c:\projects
|
BASE_DIR: c:\projects
|
||||||
platform: x86
|
platform: x86
|
||||||
|
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
|
||||||
|
NIM_URL: https://nim-lang.org/download/nim-0.18.0.tar.xz
|
||||||
|
NIM_ARCHIVE: nim-0.18.0.tar.xz
|
||||||
|
NIM_VERSION: nim-0.18.0
|
||||||
|
|
||||||
|
for:
|
||||||
|
-
|
||||||
|
matrix:
|
||||||
|
only:
|
||||||
|
- image: Visual Studio 2017
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- CD %BASE_DIR%
|
- CD %BASE_DIR%
|
||||||
|
|
@ -56,6 +65,42 @@ install:
|
||||||
# - SET PATH=%CD%\bin;%PATH%
|
# - SET PATH=%CD%\bin;%PATH%
|
||||||
# - cd ..
|
# - cd ..
|
||||||
|
|
||||||
|
on_finish:
|
||||||
|
- 7z a -r buildlogs-win.zip %USERPROFILE%\.nimble\pkgs
|
||||||
|
- appveyor PushArtifact buildlogs-win.zip
|
||||||
|
|
||||||
|
cache:
|
||||||
|
- c:\projects\i686-8.1.0-release-posix-dwarf-rt_v6-rev0.7z
|
||||||
|
- c:\projects\mingw-w64-i686-libssh2-1.8.0-1-any.pkg.tar.xz
|
||||||
|
- c:\projects\mingw-w64-i686-openssl-1.0.2.o-1-any.pkg.tar.xz
|
||||||
|
- c:\projects\nim-0.18.0_x32.zip
|
||||||
|
|
||||||
|
for:
|
||||||
|
-
|
||||||
|
matrix:
|
||||||
|
only:
|
||||||
|
- image: Ubuntu
|
||||||
|
|
||||||
|
install:
|
||||||
|
- if [ ! $NIM_ARCHIVE ]; then curl -o $NIM_ARCHIVE $NIM_URL; fi
|
||||||
|
- tar xJf $NIM_ARCHIVE
|
||||||
|
- cd $NIM_VERSION
|
||||||
|
- sh build.sh
|
||||||
|
- bin/nim -d:release koch
|
||||||
|
- ./koch boot -d:release
|
||||||
|
- ./koch nimble -d:release
|
||||||
|
- set PATH=`pwd`/bin:~/.nimble/bin:$PATH
|
||||||
|
- cd ..
|
||||||
|
- echo `pwd`
|
||||||
|
- ls
|
||||||
|
|
||||||
|
on_finish:
|
||||||
|
- zip buildlogs-lin.zip ~/.nimble/pkgs
|
||||||
|
- appveyor PushArtifact buildlogs-lin.zip
|
||||||
|
|
||||||
|
cache:
|
||||||
|
- nim-0.18.0.tar.xz
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- nimble install -y
|
- nimble install -y
|
||||||
|
|
||||||
|
|
@ -63,7 +108,3 @@ test_script:
|
||||||
- nimble test
|
- nimble test
|
||||||
|
|
||||||
deploy: off
|
deploy: off
|
||||||
|
|
||||||
on_finish:
|
|
||||||
- 7z a -r buildlogs.zip %USERPROFILE%\.nimble\pkgs
|
|
||||||
- appveyor PushArtifact buildlogs.zip
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue