-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
71 lines (61 loc) · 1.92 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
language: rust
cache: cargo
os: linux
dist: xenial
branches:
except:
- docs
env:
global:
- secure: HUwB7YDEJP1KuOOdYpQN/L4/nxnqzkrDe7ECY/TURjdA/HV/TQl5h7dZajET00Wg+MeGrS8ZQViqN6Vdo2i7DKucqef+ZXNhKCztmRnK6eD1t4a2Fp6+vxjQQXzNz4MOXCWAmkYlkJb85KBPTSyWGmPsL2WljMFj0HrB/feSRV1sk5lpdvxyO+KSWmTGAr/f/S+czu/m7c2FUWHjcoPktviIhlhnXMQtMfKcvDiHCKEyuDFvN1R9VSbSl4KhnGyAwi6p7O3IK6tnr9piTHNl9bDGC8/5pYEP8etjMAubvcBrsKoiCw3PaHoUOj9OiRlEz67SEQvlKn1lQoktNF+fPxEnx+9z4dTD1u/uQ8FJfYiVbxg/D0lHcl8+EuBc3IfWoHygWgYUz9NjfPuSVXeROgk5p6xxt5BYwpfdTmYKdcpnCZEVzW/WEuqm8DjyDhFMEke8Wzp/KCdVEV+jtWNK6WNegzWZACXO7Hjmt9vxH0R2iXFA8HA14PWM4m5jMeineUf+I3HWF+a1pe1P2jSMXJHwCPbxEyVPCDYlsrYyJXn4C8yAzOgpLD4+x1jv+075I0b7WbjF9ZVegfhrq01VbD09hRygGEp6HZE86AriX6BcxT4HlaefkttHC4iCfdYIorpxEw7DaEx0SNgx2SG6ijdfCjMeARQ8EQFhvybKOsE=
before_install:
- sudo apt-get -q update
- sudo apt-get -y install gfortran libopenblas-dev
install:
- python3 -m pip install maturin
script:
- |
if [ "$TEST" == "1" ]; then
make test
else
rustup target add $TARGET;
cd lsh-py && rustup override set nightly && mkdir wheels
maturin publish \
-o wheels \
--repository-url ${PYPI} \
--username ritchie46 \
--target ${TARGET}
ls wheels
fi
jobs:
include:
- os: linux
stage: test
env: TEST=1
# - os: osx
# env: TARGET=x86_64-apple-darwin
- os: linux
stage: deploy
env: TARGET=x86_64-unknown-linux-gnu PYPI=https://upload.pypi.org/legacy/
- os: linux
stage: test-deploy
env: TARGET=x86_64-unknown-linux-gnu PYPI=https://test.pypi.org/legacy/
stages:
- test
- name: test-deploy
if: branch = test-release
- name: deploy
if: branch = release
addons:
apt:
sources:
- deadsnakes
packages:
- libdbus-1-dev
- musl-tools
- fakeroot
- python3.5-dev
- python3.6-dev
- python3.7-dev
- python3.8-dev
- python3-pip