forked from go-python/gopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (50 loc) · 1.69 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
language: go
go:
- 1.13.x
- 1.12.x
- 1.11.x
- master
cache:
directories:
- $HOME/.cache/go-build
- $HOME/gopath/pkg/mod
git:
depth: 10
matrix:
fast_finish: true
allow_failures:
- go: master
sudo: required
before_install:
- sudo apt-get install libffi-dev python-cffi python-pip python3-cffi python3-pip
- export PATH=$HOME/gopath/bin:/usr/local/bin:$PATH
# Init() in main_test will make sure all backends are available if
# GOPY_TRAVIS_CI is set
- export GOPY_TRAVIS_CI=1
- export GOTRACEBACK=crash
# pypy3 isn't packaged in ubuntu yet.
- TEMPDIR=$(mktemp -d)
- export PYPYVERSION=v7.1.1
- curl -L https://bitbucket.org/pypy/pypy/downloads/pypy2.7-${PYPYVERSION}-linux64.tar.bz2 --output $TEMPDIR/pypy2.tar.bz2
- curl -L https://bitbucket.org/pypy/pypy/downloads/pypy3.6-${PYPYVERSION}-linux64.tar.bz2 --output $TEMPDIR/pypy3.tar.bz2
- tar xf $TEMPDIR/pypy2.tar.bz2 -C $TEMPDIR
- tar xf $TEMPDIR/pypy3.tar.bz2 -C $TEMPDIR
- sudo ln -s $TEMPDIR/pypy2.7-$PYPYVERSION-linux64/bin/pypy /usr/local/bin/pypy
- sudo ln -s $TEMPDIR/pypy3.6-$PYPYVERSION-linux64/bin/pypy3 /usr/local/bin/pypy3
# install pip (for pypy)
#- curl -L https://bootstrap.pypa.io/get-pip.py --output ${TEMPDIR}/get-pip.py
#- pypy ${TEMPDIR}/get-pip.py
#- pypy3 ${TEMPDIR}/get-pip.py
# install pybindgen
- python2 -m pip install --user -U pybindgen
- python3 -m pip install --user -U pybindgen
#- pypy -m pip install --user -U pybindgen
#- pypy3 -m pip install --user -U pybindgen
# install goimports
- go get golang.org/x/tools/cmd/goimports
notifications:
email:
recipients:
- binet@cern.ch
on_success: change
on_failure: always