-
Notifications
You must be signed in to change notification settings - Fork 178
/
.travis.yml
53 lines (53 loc) · 2.28 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
sudo: false # Use container-based infrastructure
language: python
env:
global:
- KERAS_BACKEND=tensorflow
- CUDA_VISIBLE_DEVICES=""
matrix:
include:
- python: 3.6
before_install:
# Commands below copied from: http://conda.pydata.org/docs/travis.html
# We do this conditionally because it saves us some downloading if the
# version is the same.
- 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"
# reset the shell's lookup table for program name to path mappings
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
addons:
apt:
packages:
# Even though I'm installing cvxopt via conda, still seem to need these:
- liblapack-dev
- libatlas-base-dev
install:
- >
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
numpy=1.19.5 keras=2.4.3 scipy nose pandas matplotlib cvxopt scikit-learn
- source activate test-environment
- conda install -c cvxgrp scs=1.2.6
- pip install tensorflow==2.5
- pip install -r requirements.txt
- pip install .
- pip install coveralls
- export PACKAGE_DIR=`pwd`
script:
- cd $PACKAGE_DIR
- nosetests test --with-coverage --cover-package=fancyimpute
after_success:
- coveralls
deploy:
provider: pypi
distributions: sdist
user: openvax
password: # See http://docs.travis-ci.com/user/encryption-keys/
secure: "AAzTof2771B8tjg2PzCFfctNUbJ6BcQIkH3skpKJvoyWmL0U/fqnGF6zpK0QApJBqTX/xygYhLSfKWZ788FWwyaHW6Hgw8UQ1eHJPurjC9P8O/OWYRhK3r9J7dEPL4+uHfD67C7C+JGCl9BQk8+dRGYDOJ9kx32Eown8wtaoNY7ykLwq/mXsJcm+NjvfJzA7xE4TbGlL1RFDidUkwZ4YgWtGFcfEtVZlO+pEqeprLr/PBQap6K6WPA5yjQKziaqw5DSjMAU5TVDoZgIMu3/uxUJS6EGYs7FvRM961oEFXs9QvhDz+VtKr1kY8wGR1kJXes41NDr8fq9MqBAGcz3yxHeEP1wU1Aukfbw6QUQqQ7rUWFVKSqeVAq7Phirz7RHWslXl9dSoK2REQA3C8sXggmj198YhEq7QufxzTkD4KCDj+jutbMURZI5re6oetLqBz+8zExywXLKgVtTlUnokJ9R5Fnl0E1B4LMHXRvus71+vLQfv2gCt5OWRxzUfUFzpMdkXG2FDmjFGdBw6OWMhS1W+B19ht6Ho4SoN0Tj3YzvZt2AEwShm1i0LA8ITSN1lQdEucdz0kAhvXVRJtcGa4y48/uT9e8gzeyDyANvJ1RAbCsj3/kazucZH9I0b0lRyMiadtj7mfQwnU9MXCJzG7e912sGJDImyiTXqTQfw1Us="
on:
branch: master
condition: $TRAVIS_PYTHON_VERSION = "3.6"