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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
language: python
matrix:
    include:
     - os: linux
       python: 3.8
       env: BACKEND=mxnet
     - os: linux
       python: 3.8
       env: BACKEND=jax
     - os: linux
       python: 3.8
       env: BACKEND=pytorch
     - os: linux
       python: 3.8
       env: BACKEND=tensorflow
     - os: linux
       python: 3.8
       env: BACKEND=numpy DEPLOY_DOCS=1 DEPLOY_PYPI=1
       addons:
         apt:
           packages:
           - texlive
           - texlive-latex-extra
           - dvipng

install: 
    # Install miniconda
    - deactivate
    - 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
    # Useful for debugging any issues with conda
    - conda info -a
    # Create and activate a test-environment with numpy and scipy
    - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy
    - source activate test-environment
    - pip install coveralls pytest pytest-cov nose
    # For NumPy: install sparse for contrib.sparse tests
    # For MXNet, additionnal dependencies are required
    # For PyTorch, install the cpu version and torchvision
    - if [[ "$BACKEND" == "numpy" ]]; then
        pip install sparse;
      elif [[ "$BACKEND" == "pytorch" ]]; then
        conda install pytorch cpuonly -c pytorch;
      elif [[ "$BACKEND" == "tensorflow" ]]; then
        conda install tensorflow;
      elif [[ "$BACKEND" == "mxnet" ]]; then
        pip install mxnet;
      elif [[ "$BACKEND" == "jax" ]]; then
        pip install jax jaxlib;
      fi
    - pip install -e .

script:
- travis_wait make BACKEND=$BACKEND test-coverage

after_success:
- coveralls
- bash deploy_docs.sh

deploy: