diff --git a/appveyor.yml b/appveyor.yml index 81853613..0c3fd55e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,10 +1,11 @@ image: Visual Studio 2017 -stack: go 1.10 - environment: global: - GOPATH: c:\gopath + CYG_ROOT: C:\cygwin64 + CYG_MIRROR: http://cygwin.mirror.constant.com + CYG_CACHE: C:\cygwin64\var\cache\setup + CYG_BASH: C:\cygwin64\bin\bash matrix: - PYTHON: "C:\\Python27" @@ -18,22 +19,23 @@ environment: DISTUTILS_USE_SDK: "1" - PYTHON: "C:\\Python35-x64" - PYTHON: "C:\\Python36-x64" - - PROFILE: MINGWx64 - PLATFORM: x64 +cache: + - '%CYG_CACHE%' install: - - "%PYTHON%\\python.exe -m ensurepip" - - "%PYTHON%\\python.exe -m pip install cpp-coveralls==0.3.11" + - '%CYG_ROOT%\setup-x86_64.exe --quiet-mode --no-shortcuts --upgrade-also --packages autoconf,autogen,automake,cygwin-devel,git,gcc-core,gcc-g++,libncurses-devel,libprotobuf-devel,make,openssh,openssl-devel,pkg-config,zlib-devel' + - '%CYG_ROOT%\bin\cygcheck -dc cygwin' - git submodule init - git submodule update - cd gopath/src/github.com/skycoin/skycoin - git checkout origin/stdevEclipse_t1568_swig_files - cd C:\projects\pyskycoin - - "%PYTHON%\\python.exe -m pip install setuptools wheel tox" - - cinst make + - "%PYTHON%\\python.exe -m pip install wheel tox" + - choco install make --source=cygwin - cinst swig build: off test_script: - - cmake --build build\mingw --use-stderr --target test + - '%CYG_BASH% -lc "export OS=Windows_NT"' + - '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER && make test"'