Skip to content

Commit fb5366f

Browse files
committed
Wrap the test stage using a user scheme
1 parent aa1877e commit fb5366f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,17 @@ matrix:
1515
- env: ARCH=x86_64
1616

1717
install:
18+
- # Setup the build env
1819
- docker build -t ${DOCKER_USERNAME}/linuxdeploy-plugin-python:${ARCH} --build-arg Arch=${ARCH} .travis
1920

2021
script:
22+
- # Build the AppImages
2123
- docker run --cap-add SYS_ADMIN --device /dev/fuse --mount src=$PWD,dst=/work,type=bind ${DOCKER_USERNAME}/linuxdeploy-plugin-python:${ARCH}
22-
- python3 -m tests
24+
- # Test the Python AppImages
25+
- mkdir -p home/test/.local/lib/python2.7/site-packages
26+
- mkdir -p home/test/.local/lib/python3.7/site-packages
27+
- HOME=$PWD/home/test USER=test PATH="$PWD/home/test/.local/bin:$PATH" python3 -m tests
2328

2429
after_success:
30+
- # Upload the AppImages
2531
- ./.travis/after-success.sh

0 commit comments

Comments
 (0)