This repository has been archived by the owner on Jul 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
90 lines (77 loc) · 2.51 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
language: python
sudo: false
dist: trusty
env:
- PIP_VER=19.1.1 TEST_SHELL_CMD=bash LANG=C
- PIP_VER=18.0 TEST_SHELL_CMD=zsh LANG=C
- PIP_VER=10.0.1 TEST_SHELL_CMD=zsh LANG=en_US.utf-8
- PIP_VER=10.0.1 TEST_SHELL_CMD=bash LANG=ja_JP.utf-8
- PIP_VER=18.0 TEST_SHELL_CMD=bash LANG=en_US.utf-8
- PIP_VER=19.1.1 TEST_SHELL_CMD=zsh LANG=ja_JP.utf-8
- PIP_VER=19.1.1 TEST_SHELL_CMD=zsh LANG=en_US.utf-8
- PIP_VER=18.0 TEST_SHELL_CMD=zsh LANG=ja_JP.utf-8
- PIP_VER=10.0.1 TEST_SHELL_CMD=zsh LANG=C
# - PIP_VER=19.0.3 TEST_SHELL_CMD=zsh LANG=C
# - PIP_VER=19.0.3 TEST_SHELL_CMD=zsh LANG=en_US.utf-8
# - PIP_VER=19.0.3 TEST_SHELL_CMD=zsh LANG=ja_JP.utf-8
# - PIP_VER=19.0.3 TEST_SHELL_CMD=bash LANG=C
# - PIP_VER=19.0.3 TEST_SHELL_CMD=bash LANG=en_US.utf-8
# - PIP_VER=19.0.3 TEST_SHELL_CMD=bash LANG=ja_JP.utf-8
# - PIP_VER=18.0 TEST_SHELL_CMD=zsh LANG=C
# - PIP_VER=18.0 TEST_SHELL_CMD=zsh LANG=en_US.utf-8
# - PIP_VER=18.0 TEST_SHELL_CMD=zsh LANG=ja_JP.utf-8
# - PIP_VER=18.0 TEST_SHELL_CMD=bash LANG=C
# - PIP_VER=18.0 TEST_SHELL_CMD=bash LANG=en_US.utf-8
# - PIP_VER=18.0 TEST_SHELL_CMD=bash LANG=ja_JP.utf-8
# - PIP_VER=10.0.1 TEST_SHELL_CMD=zsh LANG=C
# - PIP_VER=10.0.1 TEST_SHELL_CMD=zsh LANG=en_US.utf-8
# - PIP_VER=10.0.1 TEST_SHELL_CMD=zsh LANG=ja_JP.utf-8
# - PIP_VER=10.0.1 TEST_SHELL_CMD=bash LANG=C
# - PIP_VER=10.0.1 TEST_SHELL_CMD=bash LANG=en_US.utf-8
# - PIP_VER=10.0.1 TEST_SHELL_CMD=bash LANG=ja_JP.utf-8
python:
# - "2.6"
- 2.7
# - "3.2"
# - "3.3"
# - "3.4"
# - 3.5
- 3.6
# - 3.7-dev # To be '3.7' ?
- "nightly"
cache:
- pip: true
- directories:
- $HOME/mpi
- $HOME/zsh
- $HOME/.mpienv-test
- $HOME/.mpienv-build
- $HOME/.mpienv-cache
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- ibverbs-utils
- libibverbs-dev
- wget
- zsh
before_script:
- export MPI=openmpi-3.1.2
- bash tests/build_mpi.sh
install:
- pip install "pip==${PIP_VER}"
- pip install -r requirements.txt
- pip install pytest
script:
- autopep8 --diff -r . --global-config .pep8 | tee check_autopep8
- test ! -s check_autopep8
- flake8 $(find . -name "*.py")
- export MPI=$HOME/mpienv/openmpi-3.1.2
- export PATH=$MPI/bin:$PATH
- export LD_LIBRARY_PATH=$MPI/lib:$LD_LIBRARY_PATH
- ${TEST_SHELL_CMD} ./tests/test_main.sh
# - codeclimate-test-reporter || true # CODECLIMATE_REPO_TOKEN is defined in TravisCI's setting
branches:
only:
- master