Merge pull request #378 from taoliu/fix_setup_script_364
[MACS.git] / .travis.yml
blob3708096316d70c358f1c0ac712692f633ecc3a14
1 language: python
2 os: linux
3 dist: bionic
4 jobs:
5   include:
6     # i386: Intel 32-bit
7     # Python is determined by test/Dockerfile
8     # Since the docker uses default bionic, python 3.6 is used for this test.
9     - name: i386_py3.6
10       language: shell
11       install: |
12         docker run --rm --privileged multiarch/qemu-user-static --reset -p yes &&
13           docker build --rm --build-arg BASE_IMAGE="i386/ubuntu:bionic" -t macs -f test/Dockerfile .
14       script: |
15         docker run --rm -t macs bash -cx "pytest --runxfail && cd test && ./cmdlinetest macs2"
16     - name: amd64_py3.8
17       arch: amd64
18       python: 3.8
19     - name: amd64_py3.7
20       arch: amd64
21       python: 3.7
22     - name: amd64_py3.6
23       arch: amd64
24       python: 3.6      
25     - name: arm64_py3.8
26       arch: arm64
27       python: 3.8
28     - name: ppc64le_py3.8
29       arch: ppc64le
30       python: 3.8     
31     - name: s390x_py3.8
32       arch: s390x
33       python: 3.8
34   allow_failures:
35   #  - name: i386_py3.6
36     # this one may time out depending on the load on travis CI
37     - name: arm64_py3.8
38   #  - name: ppc64le_py3.8
39   #  - name: s390x_py3.8
40   fast_finish: true
41 install:
42   - pip install --upgrade pip
43   - pip install --upgrade -r requirements.txt --no-cache-dir
44   - python setup.py install
45 script:
46   - pytest --runxfail
47   - cd test
48   - ./cmdlinetest macs2
49   #- cd ..
50 deploy:
51   provider: pypi
52   username:
53     secure: lguBZWd+H2u4jqWgq4xFrlDnTniJtGm4eGddGpXGWFrhX4qno2YdJMd5S6L+FVUezrwTXLptyWcKSrJRcddAzR5vvXIX0ibpMThiVjXRrQGtlGkuffAXjiCleIk0QxsOafTElHW4zzGXf3us8ECLcdHwcJdJOjJPUSVLjeWJsTVPJqxySq1eWT9I7E8Wh0yeaZ/WiA3Val5Brc7B6P0ZpDnS5Y0bpSDgWb4uCvbkCJhf74Owj7D2yrbrsfM6H/QZRR2zr97d4w8/mserFQSIdM5GnhN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wB++Ccjbfc=
56   on:
57     tags: true
58   skip_existing: true
59   distributions: sdist