aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: d35a46a731e6482fa5a4953ccead0fc1c2abfcfa (plain)
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
# Travis CI configuration for GenSVM

matrix:
  include:
    - language: python
      dist: xenial
      sudo: required
      python: "3.7"
      services:
        - docker
      before_install:
        - sudo apt-get update
        - sudo apt-get install -y libatlas-base-dev liblapack-dev liblapacke-dev;
      env:
        - CC="gcc"
        - PYTHON="python3"
        - PIP="pip3"
        - CIBW_BEFORE_BUILD="yum install -y atlas-devel lapack-devel && pip install numpy"

    - os: osx
      language: generic
      before_install:
        - brew update
        - brew install openblas
        - brew install lapack
      env:
        - CC="gcc"
        - PYTHON="python3"
        - PIP="pip3"
        - CIBW_BEFORE_BUILD="pip install numpy"

    - os: windows
      language: shell
      before_install:
        #- choco install python3 --version 3.6.8 --no-progress -y
          #- choco install git
          #- choco install cygwin --no-progress -y
        - choco install cyg-get --no-progress -y
        - /c/tools/cygwin/cygwinsetup.exe --root /c/tools/cygwin --local-package-dir /c/tools/cygwin/packages -d -n -f -q -v -B -P lapack-3.8.0-1,openblas-0.3.7-1
          #- /c/ProgramData/chocolatey/bin/cyg-get.bat -debug lapack-3.8.0-1 
          #openblas-0.3.7-1
          #- choco install cyg-get --no-progress -y
      env:
        - PATH=/c/Python36:/c/Python36/Scripts:/c/ProgramData/chocolatey/bin:$PATH
        - PYTHON="python"
        - PIP="pip"
        - CIBW_BEFORE_BUILD="pip install numpy"

env:
  - CIBW_TEST_COMMAND="python -VV && python -m unittest discover -f -s {project}/test

env:
  - CC="gcc"

install:
  - $PIP install numpy
  - $PIP install -e .[dev]
  - $PYTHON -m unittest discover -v -f -s ./test

script:
  - $PIP install cibuildwheel==1.0.0
  - cibuildwheel --output-dir wheelhouse
  - ls wheelhouse