forked from hyperopt/hyperopt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (49 loc) · 1.31 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
dist: trusty
language: python
cache:
directories:
- $HOME/.cache/spark-versions
env:
global:
- HYPEROPT_FMIN_SEED=3
- SPARK_VERSION=2.4.4
- SPARK_BUILD="spark-${SPARK_VERSION}-bin-hadoop2.7"
- SPARK_BUILD_URL="https://archive.apache.org/dist/spark/spark-${SPARK_VERSION}/${SPARK_BUILD}.tgz"
- SPARK_HOME=$HOME/.cache/spark-versions/${SPARK_BUILD}
- RUN_ONLY_LIGHT_TESTS=True
- NUMPY_VERSION=1.14.3
matrix:
include:
- python: 2.7
env:
- IPYTHON="ipython[all]==5.4.1"
- python: 3.5
env:
- IPYTHON=ipython[all]
- python: 3.6
env:
- IPYTHON=ipython[all]
services:
- mongodb
before_script:
- sleep 15 # mongo takes time to start
- mongo mydb_test --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]});'
before_install:
- ./download_spark_dependencies.sh
install:
- sudo apt-get remove ipython
- pip install --upgrade pip
- pip install --upgrade setuptools
- pip install --upgrade wheel
- pip install $IPYTHON
- pip install --only-binary=numpy,scipy numpy==$NUMPY_VERSION scipy
- pip install .[MongoTrials]
- pip install .[SparkTrials]
- pip install .[ATPE]
- pip install pytest>=3.6
- pip install pytest-cov pep8 pytest-pep8
- pip install wrapt
script:
- ./run_tests.sh
after_success:
- coveralls