-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
32 lines (26 loc) · 913 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
services:
- docker
cache: docker
branches:
only:
- master
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)$/
matrix:
include:
- env: ARCH=x86_64
install:
- # Setup the build env
- docker build -t ${DOCKER_USERNAME}/linuxdeploy-plugin-python:${ARCH} --build-arg Arch=${ARCH} .travis
script:
- # Build the AppImages
- docker run --cap-add SYS_ADMIN --device /dev/fuse --mount src=$PWD,dst=/work,type=bind ${DOCKER_USERNAME}/linuxdeploy-plugin-python:${ARCH}
- # Test the Python AppImages
- mkdir -p home/test/.local/lib/python2.7/site-packages
- mkdir -p home/test/.local/lib/python3.7/site-packages
- mkdir -p home/test/.local/lib/python3.8/site-packages
- HOME=$PWD/home/test USER=test PATH="$PWD/home/test/.local/bin:$PATH" python3 -m tests
after_success:
- # Upload the AppImages
- ./.travis/after-success.sh