Merge pull request #363 from taoliu/fix_test_bdgopt
[MACS.git] / .travis.yml
blobb3bb94f922fd62ec2df4a207a945192de6ae91bd
1 language: python
2 os: linux
3 dist: bionic
4 jobs:
5   include:
6     # i386: Intel 32-bit
7     - name: i386
8       language: shell
9       install: |
10         docker run --rm --privileged multiarch/qemu-user-static --reset -p yes &&
11           docker build --rm --build-arg BASE_IMAGE="i386/ubuntu:bionic" -t macs -f test/Dockerfile .
12       script: |
13         docker run --rm -t macs bash -cx "pytest --runxfail && cd test && ./cmdlinetest macs2"
14     # - name: "i686 py3.5"
15     #   dist: bionic
16     #   arch: amd64
17     #   env:
18     #     - ARCH_FLAGS="-m32"
19     #   addons:
20     #     apt:
21     #       packages:
22     #       - libc6:i386
23     #       - libc6-dev:i386
24     #       - gcc-8:i386
25     #       - g++-8:i386
26     #       - cpp-8:i386
27     #       - binutils:i386
28     #       - binutils-i686-linux-gnu:i386
29     #       - python3.5:i386        
30     - name: amd64
31       arch: amd64
32       python: 3.8
33     - name: arm64
34       arch: arm64
35       python: 3.8
36     - name: ppc64le
37       arch: ppc64le
38       python: 3.8     
39     - name: s390x
40       arch: s390x
41       python: 3.8
42   allow_failures:
43     - name: i386 
44     - name: arm64
45     - name: ppc64le
46     - name: s390x
47   fast_finish: true
48 install:
49   - pip install --upgrade pip
50   - pip install --upgrade -r requirements.txt --no-cache-dir
51   - python setup.py install
52 script:
53   - pytest --runxfail
54   - cd test
55   - ./cmdlinetest macs2
56   - cd ..
57 deploy:
58   provider: pypi
59   username:
60     secure: lguBZWd+H2u4jqWgq4xFrlDnTniJtGm4eGddGpXGWFrhX4qno2YdJMd5S6L+FVUezrwTXLptyWcKSrJRcddAzR5vvXIX0ibpMThiVjXRrQGtlGkuffAXjiCleIk0QxsOafTElHW4zzGXf3us8ECLcdHwcJdJOjJPUSVLjeWJsTVPJqxySq1eWT9I7E8Wh0yeaZ/WiA3Val5Brc7B6P0ZpDnS5Y0bpSDgWb4uCvbkCJhf74Owj7D2yrbrsfM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gZwrS/S+5Q+7t/rwZn0SkjjSJZIIwB++Ccjbfc=
63   on:
64     tags: true
65   skip_existing: true
66   distributions: sdist