forked from maxpumperla/elephas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (31 loc) · 968 Bytes
/
.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
sudo: required
dist: bionic
language: python
python:
- "3.7"
- "3.8"
- "3.9"
before_install:
- sudo add-apt-repository -y ppa:openjdk-r/ppa
- sudo apt-get -qq update
- sudo apt-get install -y openjdk-8-jdk --no-install-recommends
- sudo update-java-alternatives -s java-1.8.0-openjdk-amd64
- export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
env:
- SPARK_LOCAL_IP=0.0.0.0
install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- travis_retry conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION nose
- source activate test-environment
- pip install Cython --install-option="--no-cython-compile"
- pip install -e .[tests]
script:
- pytest tests/
after_success:
- coveralls