-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
55 lines (49 loc) · 1.39 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
# Config file for automatic testing at travis-ci.com
language: python
python:
- 3.9
# Command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
# Command to run tests, e.g. python setup.py test
script: pytest tests
matrix:
include:
- os: linux
addons:
apt:
sources:
- deadsnakes
- ubuntu-toolchain-r-test
packages:
- python3.9
env:
- C_COMPILER="gcc-7", CXX_COMPILER="g++-7"
before_install:
- pyenv global $(pyenv whence 2to3)
- pip install pipenv
- export MPI_BUILD_DIR=$TRAVIS_BUILD_DIR/openmpi-build
- export MPI_VERSION="3.1"
- export MPI_FULL_VERSION="3.1.3"
install:
# Non-cached builds can take some time. Tell Travis not to time out (30 min should be plenty).
- source ci/install-openmpi.sh
- echo $MPI_CC
- echo $MPI_CXX
- echo $MPI_EXEC
- env MPICC=$MPI_CC pipenv install --skip-lock
- pip install --upgrade pip
- pip install -r requirements.txt
- python setup.py install
# Assuming you have installed the travis-ci CLI tool, after you
# create the Github repo and add it to Travis, run the
# following command to finish PyPI deployment setup:
# $ travis encrypt --add deploy.password
deploy:
provider: pypi
distributions: sdist bdist_wheel
user: chto
password:
secure: PLEASE_REPLACE_ME
on:
tags: true
repo: chto/linna
python: 3.9