Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
1189984
Initial attempt just to matrix the target 'platform'; no actual separ…
embray Oct 27, 2017
33c89fa
Forget about running the tests for now; let's just see how far we get…
embray Oct 27, 2017
922e340
It's elseif
embray Oct 27, 2017
f76a560
Should be bin\bash
embray Oct 27, 2017
adf8640
Little helper function to run Cygwin programs in the right directory/…
embray Oct 27, 2017
33114d3
It didn't like my long string continuation; I think this is the right…
embray Oct 27, 2017
72c0a96
I've had this problem before--sometimes it's necessary to explicitly …
embray Oct 27, 2017
85143a1
Invoke 'configure' and 'make' separately; disable the -s flag on make…
embray Oct 27, 2017
c6f31d7
At least for debugging purposes, might be helpful to have cygcheck ou…
embray Oct 27, 2017
ddf04a4
Try using apt-cyg to add some additional build dependencies
embray Oct 27, 2017
8c26b64
curl got weird about redirected content; appveyor log got weird about…
embray Oct 27, 2017
aa4057d
Output to a file, duh
embray Oct 27, 2017
a4a24cc
Move the Cygwin function into a little cygwin.ps1 library that can be…
embray Oct 30, 2017
5818439
Enable tests on Cygwin
embray Oct 30, 2017
3206d1d
Hush noisy stderr output from apt-cyg install
embray Oct 30, 2017
c1c4e6c
Add verbose test results, at least for now, while I investigate test …
embray Oct 31, 2017
dc77d0c
This is a bit nicer--re-run only failed tests with verbose output
embray Oct 31, 2017
dd7960c
Add zlib-devel so that the zlib module can get built.
embray Nov 8, 2017
bd5477e
skip a few more tests that didn't fail locally, but that are failing …
embray Jul 25, 2018
f3937be
something mysteriously causing test_logging to hang when run on appveyor
embray Jul 25, 2018
084d1f1
re-enable the native Win32 build
embray Jul 25, 2018
04e9c93
if anything was written to stderr powershell will complain of an 'exc…
embray Jul 25, 2018
2c54a5f
I think this might have been backwards actually
embray Jul 25, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 35 additions & 3 deletions .github/appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ branches:
- master
- /\d\.\d/
- buildbot-custom
- appveyor-cygwin
cache:
- externals -> PCbuild
before_build:
Expand All @@ -28,11 +29,42 @@ before_build:


build_script:
- cmd: PCbuild\build.bat -e -p x64
- cmd: PCbuild\amd64\python.exe -m test.pythoninfo
- ps: |
if ($env:PLATFORM -eq "Win32") {
PCbuild\build.bat -e -p x64
PCbuild\amd64\python.exe -m test.pythoninfo
} elseif ($env:PLATFORM -eq "Cygwin64") {
. .github\cygwin.ps1
Cygwin cygcheck -s
Cygwin curl -s --output apt-cyg https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg
Cygwin chmod +x apt-cyg
Cygwin ./apt-cyg install libcrypt-devel libffi-devel zlib-devel "2>&1"
Cygwin ./configure
Cygwin make -j4
Cygwin ./python.exe -m test.pythoninfo
}
test_script:
- cmd: PCbuild\rt.bat -x64 -q -uall -u-cpu -u-largefile -rwW --slowest --timeout=1200 --fail-env-changed -j0
- ps: |
if ($env:PLATFORM -eq "Win32") {
PCbuild\rt.bat -x64 -q -uall -u-cpu -u-largefile -rwW --slowest --timeout=1200 --fail-env-changed -j0
if ($LastExitCode -eq 0) {
$host.SetShouldExit(0)
}
} elseif ($env:PLATFORM -eq "Cygwin64") {
. .github\cygwin.ps1
# For now, skip tests that are failing locally
# Later we will want to expand this to more closely resemble hwo the
# tests are run for Linux on Travis-CI
Cygwin ./python.exe -E -Wd -m test -w --timeout=1200 --fail-env-changed -j0 -x test_argparse -x test_asyncio -x test_asyncore -x test_bufio -x test_c_locale_coercion -x test_concurrent_futures -x test_dbm_dumb -x test_distutils -x test_file -x test_file_eintr -x test_fileio -x test_grp -x test_httpservers -x test_import -x test_io -x test_ioctl -x test_largefile -x test_logging -x test_math -x test_memoryio -x test_mmap -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_multiprocessing_main_handling -x test_multiprocessing_spawn -x test_os -x test_pathlib -x test_posix -x test_pwd -x test_py_compile -x test_resource -x test_selectors -x test_shutil -x test_signal -x test_socket -x test_socketserver -x test_ssl -x test_stat -x test_subprocess -x test_support -x test_tarfile -x test_tempfile -x test_univnewlines -x test_urllib -x test_utf8_mode -x test_venv -x test_zipfile
}
environment:
HOST_PYTHON: C:\Python36\python.exe
image:
- Visual Studio 2017
platform:
- Win32
- Cygwin64
matrix:
fast_finish: true
allow_failures:
- platform: Cygwin64
10 changes: 10 additions & 0 deletions .github/cygwin.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
function Cygwin {
$cygbin = "C:\\cygwin64\\bin"
$project_path = & "$cygbin\\cygpath" -u -a $env:APPVEYOR_BUILD_FOLDER
$cmd = ("C:\\cygwin64\\bin\\bash.exe -lc " +`
"'cd $project_path; $($args -join " ")'")
Invoke-Expression $cmd
if ($LastExitCode -ne 0) {
$host.SetShouldExit($LastExitCode)
}
}