-
Notifications
You must be signed in to change notification settings - Fork 69
/
.travis.yml
70 lines (62 loc) · 1.68 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
jobs:
include:
- os: linux
env: MPI=openmpi
language: python
python: 3.7
- os: linux
env: MPI=mpich
language: python
python: 3.7
- os: osx
env: MPI=openmpi PY=3 NUM_PROC=2
language: generic
python: 3.7
- os: osx
env: MPI=mpich PY=3 NUM_PROC=2
language: generic
python: 3.7
cache:
apt: true
addons:
apt:
update: true
homebrew:
packages:
- openmpi
before_install:
- ./scripts/install_mpi.sh $MPI
- pip$PY install torch==1.4.0
- pip$PY install numpy
- pip$PY install matplotlib # For the plot in doc
- python$PY --version
- python$PY -c "import torch; print(torch.__version__)"
- if [[ "$MPI" == "mpich" ]]; then mpichversion; fi
- if [[ "$MPI" == "openmpi" ]]; then ompi_info; fi
install:
- BLUEFOG_WITHOUT_TENSORFLOW=1 pip$PY install .
script:
- mv bluefog _bluefog # Force to use installed package instead of local one
- make test
# Build and deploy the doc through the sphinx.
before_deploy:
- pip$PY install sphinx sphinx_rtd_theme
- cd docs && make html
- touch _build/html/.nojekyll
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_PAGES_TOKEN # Set in the settings page of your repository, as a secure variable
keep_history: true
local_dir: docs/_build/html/
on:
branch: master
condition: $MPI = openmpi
tags: true
notifications:
email: