Skip to content

Commit fdfe0f0

Browse files
committed
🔥 Remove python2 tests from Makefile, travis.yml and push.yml
1 parent f496a08 commit fdfe0f0

File tree

3 files changed

+5
-20
lines changed

3 files changed

+5
-20
lines changed

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
- name: Build apk for Python 3 ${{ matrix.build-arch }}
5858
run: |
5959
mkdir -p apks
60-
make docker/run/make/with-artifact/testapps/python3/${{ matrix.build-arch }}
60+
make docker/run/make/with-artifact/testapps/${{ matrix.build-arch }}
6161
- uses: actions/upload-artifact@v1
6262
with:
6363
name: bdisttest_python3_sqlite_openssl_googlendk__${{ matrix.build-arch }}-debug-1.1.apk

.travis.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ jobs:
3636
- tox -- tests/ --ignore tests/test_pythonpackage.py
3737
name: "Tox Pep8"
3838
env: TOXENV=pep8
39-
- <<: *unittests
40-
name: "Tox Python 2"
41-
env: TOXENV=py27
4239
- <<: *unittests
4340
name: "Tox Python 3 & Coverage"
4441
env: TOXENV=py3
@@ -48,7 +45,7 @@ jobs:
4845
name: Python 3 arm64-v8a (with numpy)
4946
stage: build testapps
5047
before_script: make docker/pull
51-
script: make docker/run/make/testapps/python3/arm64-v8a
48+
script: make docker/run/make/testapps/arm64-v8a
5249
- <<: *testapps
5350
name: Python 3 armeabi-v7a
5451
os: osx
@@ -57,10 +54,7 @@ jobs:
5754
# installs java 1.8, android's SDK/NDK and p4a
5855
- make -f ci/makefiles/osx.mk
5956
- export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
60-
script: make testapps/python3/armeabi-v7a PYTHON_WITH_VERSION=python3
61-
- <<: *testapps
62-
name: Python 2 armeabi-v7a
63-
script: make docker/run/make/testapps/python2/armeabi-v7a
57+
script: make testapps/armeabi-v7a PYTHON_WITH_VERSION=python3
6458
- <<: *testapps
6559
name: Rebuild updated recipes
6660
script: travis_wait 30 make docker/run/make/rebuild_updated_recipes

Makefile

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,13 @@ rebuild_updated_recipes: virtualenv
3535
ANDROID_SDK_HOME=$(ANDROID_SDK_HOME) ANDROID_NDK_HOME=$(ANDROID_NDK_HOME) \
3636
$(PYTHON) ci/rebuild_updated_recipes.py
3737

38-
testapps/python2/armeabi-v7a: virtualenv
39-
. $(ACTIVATE) && cd testapps/ && \
40-
python setup_testapp_python2_sqlite_openssl.py apk --sdk-dir $(ANDROID_SDK_HOME) --ndk-dir $(ANDROID_NDK_HOME) \
41-
--requirements sdl2,pyjnius,kivy,python2,openssl,requests,sqlite3,setuptools
42-
43-
testapps/python3/arm64-v8a: virtualenv
38+
testapps/arm64-v8a: virtualenv
4439
. $(ACTIVATE) && cd testapps/ && \
4540
python setup_testapp_python3_sqlite_openssl.py apk --sdk-dir $(ANDROID_SDK_HOME) --ndk-dir $(ANDROID_NDK_HOME) \
4641
--requirements libffi,sdl2,pyjnius,kivy,python3,openssl,requests,sqlite3,setuptools,numpy \
4742
--arch=arm64-v8a
4843

49-
testapps/python3/armeabi-v7a: virtualenv
44+
testapps/armeabi-v7a: virtualenv
5045
. $(ACTIVATE) && cd testapps/ && \
5146
python setup_testapp_python3_sqlite_openssl.py apk --sdk-dir $(ANDROID_SDK_HOME) --ndk-dir $(ANDROID_NDK_HOME) \
5247
--arch=armeabi-v7a
@@ -77,11 +72,7 @@ docker/run/make/%: docker/build
7772
docker run --rm --env-file=.env $(DOCKER_IMAGE) make $*
7873

7974
docker/run/make/with-artifact/%: docker/build
80-
ifeq (,$(findstring python3,$($*)))
8175
$(eval $@_APP_NAME := bdisttest_python3_sqlite_openssl_googlendk)
82-
else
83-
$(eval $@_APP_NAME := bdisttest_python2_sqlite_openssl)
84-
endif
8576
$(eval $@_APP_ARCH := $(shell basename $*))
8677
docker run --name p4a-latest --env-file=.env $(DOCKER_IMAGE) make $*
8778
docker cp p4a-latest:/home/user/app/testapps/$($@_APP_NAME)__$($@_APP_ARCH)-debug-1.1-.apk ./apks

0 commit comments

Comments
 (0)