forked from hyperopt/hyperopt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·48 lines (40 loc) · 1.02 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
dist: bionic
language: python
cache:
directories:
- $HOME/.cache/spark-versions
env:
global:
- HYPEROPT_FMIN_SEED=3
- SPARK_VERSION=3.0.1
- NUMPY_VERSION=1.18.1
- 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"]});'
install:
- sudo apt-get remove ipython
- pip install --upgrade pip setuptools wheel
- pip install $IPYTHON
- pip install --only-binary=numpy,scipy numpy==$NUMPY_VERSION scipy
- pip install -e '.[MongoTrials, SparkTrials, ATPE, dev]'
- pip install nose
- pip install pyspark==$SPARK_VERSION
jobs:
include:
- stage: "lint"
name: "Run Linter (black)"
python: 3.8
script: black .
- stage: "test python 3.7"
name: "Run tests on python 3.7"
script: pytest
python: 3.7
- stage: "test python 3.8"
name: "Run tests on python 3.8"
script: pytest
python: 3.8
after_success:
- coveralls