forked from OpenMined/PySyft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (38 loc) · 1.3 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
language: python
python:
- "3.6"
# install server dependencies
before_install:
- "sudo apt-get -y install musl-dev g++ libgmp3-dev libmpfr-dev ca-certificates libmpc-dev redis-server"
- "wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;"
- "bash miniconda.sh -b -p $HOME/miniconda3"
- "export PATH=$HOME/miniconda3/bin:$PATH"
- "conda update -q conda"
- "sudo service redis-server start"
# install dependencies
install:
- "conda create -n openmined python=3.6 -y"
- "source activate openmined"
- "conda install -c anaconda -y mpc"
- "conda install -c anaconda -y gmp"
- "conda install -c anaconda -y mpfr"
- "conda install -y gmpy2 --channel conda-forge"
- "source activate openmined"
- "pip install -r requirements.txt"
- "pip install redis"
- "conda install -y django"
- "source activate openmined"
- "python setup.py install"
- "git clone https://github.com/OpenMined/Capsule.git"
- "cd Capsule/"
- "source activate openmined"
- "pip install -r requirements.txt"
- "python setup.py install"
- "cd capsule_django/"
- "python manage.py runserver 9000 > /dev/null &"
- "cd ../../"
# run tests
script:
- pytest --ignore=Capsule/ && pytest --flake8 --ignore=Capsule/
notifications:
slack: openmined:vOUE1d9jSb6V7R1r6zrjRD4E