Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Commit

Permalink
Trying to fix travis again
Browse files Browse the repository at this point in the history
Trying to use env with less env variables

Use different chars for testing

Trying to use bash because of utf-8

Adjusting xargs commandline

Let's see what locales we have in cram

Try to debug on travis

It seem cram is not the culprit

Debug on stderr with flush

Debugging from the wrong file

Debug sys default encoding

Log stdin and stdout encoding

Changing default stdin/stdout encoding for travis

UTF-8 instead of utf-8

Testing direct input parameters

Put debug to a different place

Test twice differently

See if pybuilder's the culprit

Digging into pybuilder

Putting my pybuilder in a separate line

Upgrading pip too

Get cram from my fork

Exporting PYTHONIOENCODING for cram

Debugging further

Narrowing down test code

Adding a test set

export LANG

Trying locale-gen

Add dpkg-reconfigure

Removing locale-gen

Add PYTHONIOENCODING

Test pybuilder cram plugin

Removing debug

Cleaning up

Adding travis_retry to retry network failed installs

Trying to debug yamlreader (pypy3 fails)

Force-set exit code from install to 0, stderr -> stdout

Don't let travis_retry handle the failing build (test)

Removing pypy3, does not build because of yamlreader
  • Loading branch information
karolyi committed Jan 25, 2016
1 parent 2623790 commit 64a8b79
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .travis.yml
Expand Up @@ -6,15 +6,16 @@ python:
- "3.4"
- "3.5"
- "pypy"
- "pypy3"

install:
- pip install pybuilder
- pip install coveralls
- pyb install_dependencies
- travis_retry pip install -U pip
- travis_retry pip install git+https://github.com/karolyi/pybuilder.git cram coveralls
- travis_retry pyb install_dependencies

env:
PYTHONIOENCODING=UTF-8

script:
- cat /opt/python/3.5.0/lib/python3.5/urllib/parse.py
- pyb -v

after_success:
Expand Down
6 changes: 4 additions & 2 deletions src/main/python/afp_cli/compat.py
@@ -1,6 +1,7 @@
""" Compatability module for different Python versions. """

from six import PY3, u
# from six import PY3, u
from six import PY3

try:
from ordereddict import OrderedDict # NOQA
Expand All @@ -19,4 +20,5 @@ def py2_ascii_encode(input_str):
"""
if PY3:
return input_str
return u(input_str).encode('unicode-escape')
return input_str.decode('utf-8').encode('unicode-escape')
# return u(input_str).encode('unicode-escape')
3 changes: 3 additions & 0 deletions src/main/scripts/afpv2
@@ -1,10 +1,13 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import print_function

import sys

from afp_cli.cliv2 import main


if __name__ == '__main__':
try:
main()
Expand Down

0 comments on commit 64a8b79

Please sign in to comment.