forked from Qiskit/rustworkx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
103 lines (102 loc) · 2.9 KB
/
.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
---
notifications:
email: false
os: linux
language: python
cache:
pip: true
cargo: true
dist: bionic
before_install:
- which python
- sh tools/install_rust.sh
- export PATH=~/.cargo/bin:$PATH
- which python
- pip install -U pip virtualenv
install:
- virtualenv test-venv
- test-venv/bin/pip install -U .
script:
- cd tests && ../test-venv/bin/python -m unittest discover .
stages:
- name: Linux non-x86_64
if: tag IS blank
- name: deploy
if: tag IS present
jobs:
fast_finish: true
allow_failures:
- name: Python 3.7 Tests s390x Linux
include:
- name: Python 3.7 Tests ppc64le Linux
stage: Linux non-x86_64
python: 3.7
arch: ppc64le
- name: Python 3.7 Tests s390x Linux
stage: Linux non-x86_64
python: 3.7
arch: s390x
- name: Python 3.7 Tests arm64 Linux
stage: Linux non-x86_64
python: 3.7
arch: arm64
- stage: deploy
arch: arm64
services:
- docker
before_install:
- echo ""
install:
- echo ""
env:
- CIBW_BEFORE_ALL="yum install -y wget && {package}/tools/install_rust.sh"
- CIBW_BEFORE_BUILD="pip install -U setuptools-rust"
- CIBW_SKIP="cp27-* cp34-* pp*"
- CIBW_ENVIRONMENT='PATH="$PATH:$HOME/.cargo/bin"'
- TWINE_USERNAME=retworkx-ci
- CIBW_TEST_COMMAND="python -m unittest discover {project}/tests"
if: tag IS present
script:
- pip install -U twine cibuildwheel==1.5.2
- cibuildwheel --output-dir wheelhouse
- twine upload wheelhouse/*
- stage: deploy
arch: ppc64le
services:
- docker
before_install:
- echo ""
install:
- echo ""
env:
- CIBW_BEFORE_ALL="yum install -y wget && {package}/tools/install_rust.sh"
- CIBW_BEFORE_BUILD="pip install -U setuptools-rust"
- CIBW_SKIP="cp27-* cp34-* pp*"
- CIBW_ENVIRONMENT='PATH="$PATH:$HOME/.cargo/bin"'
- TWINE_USERNAME=retworkx-ci
- CIBW_TEST_COMMAND="python -m unittest discover {project}/tests"
if: tag IS present
script:
- pip install -U twine cibuildwheel==1.5.2
- cibuildwheel --output-dir wheelhouse
- twine upload wheelhouse/*
- stage: deploy
arch: s390x
services:
- docker
before_install:
- echo ""
install:
- echo ""
env:
- CIBW_BEFORE_ALL="yum install -y wget && {package}/tools/install_rust_no_rustup.sh"
- CIBW_BEFORE_BUILD="pip install -U setuptools-rust"
- CIBW_SKIP="cp27-* cp34-*"
- CIBW_ENVIRONMENT='PATH="$PATH:$HOME/.cargo/bin"'
- TWINE_USERNAME=retworkx-ci
- CIBW_TEST_COMMAND="python -m unittest discover {project}/tests"
if: tag IS present
script:
- sudo pip install -U twine cibuildwheel==1.5.2
- cibuildwheel --output-dir wheelhouse
- twine upload wheelhouse/*