.travis.yml 1.91 KB
Newer Older
Guolin Ke's avatar
Guolin Ke committed
1
2
3
4
language: cpp
sudo: required
dist: trusty

5
6
7
git:
  submodules: true

wxchan's avatar
wxchan committed
8
9
10
compiler:
  - gcc

11
12
13
14
15
os:
  - linux
  - osx

env:
16
17
  global:
    - PYTHON_VERSION=3.6
18
  matrix:
19
    - TASK=regular
20
    - TASK=mpi PYTHON_VERSION=2.7
21
    - TASK=pylint
22
    - TASK=check-docs
23
    - TASK=if-else
24
25
    - TASK=sdist PYTHON_VERSION=3.4
    - TASK=bdist PYTHON_VERSION=3.5
wxchan's avatar
wxchan committed
26
    - TASK=proto
27
28
    - TASK=gpu METHOD=source
    - TASK=gpu METHOD=pip
29

wxchan's avatar
wxchan committed
30
matrix:
31
  exclude:
wxchan's avatar
wxchan committed
32
    - os: osx
33
      env: TASK=gpu METHOD=source
wxchan's avatar
wxchan committed
34
    - os: osx
35
      env: TASK=gpu METHOD=pip
36
37
    - os: osx
      env: TASK=if-else
38
    - os: osx
39
      env: TASK=pylint
40
41
    - os: osx
      env: TASK=check-docs
wxchan's avatar
wxchan committed
42
43
    - os: osx
      env: TASK=proto
wxchan's avatar
wxchan committed
44

Guolin Ke's avatar
Guolin Ke committed
45
before_install:
46
47
  - test -n $CC  && unset CC
  - test -n $CXX && unset CXX
wxchan's avatar
wxchan committed
48
49

install:
50
51
52
53
54
  - bash .travis/setup.sh
  - bash conda.sh -b -p $HOME/miniconda
  - export PATH="$HOME/miniconda/bin:$PATH"
  - conda config --set always_yes yes --set changeps1 no
  - conda update -q conda
Guolin Ke's avatar
Guolin Ke committed
55
56

script:
57
  - bash .travis/test.sh
Guolin Ke's avatar
Guolin Ke committed
58
59
60

notifications:
  email: false
Guolin Ke's avatar
Guolin Ke committed
61
62
63
64
65
66
67
68
69
70
71

deploy:
  provider: releases
  api-key:
    secure: "idU9Fb/yUz7VsVOEb0vGR8qqxcvXr4eh1tMzkKiMWLRx5XNeq7RCUzfKAPMIizFkML9zdMh/5vPtZ1Zs++3oWPpbZE2/o4CURoE+BvwDUyEDrKTdNSGoWgWZq0QLjfahj/PR8ObWlU+XCHqRQzKXlwbynwwUGRpOJrlEY0To5Kt9gTV5W8MxSlW7xFU2TTmMa499IZut38OuenJ3Nm9mTe6MCHFW4Y5uGp/gwNuBYfqzwUXDi6h/cJiJJD5drwtNnSneFZ2PZplrKxJxSJdSQ2aHttU+Wr8xogi9hLI/H6OA4UYCF69HrWOLSggplkZt6qUzaG7UfYyid4m6YbeKMUQRNBuGXhYVGr5qkyAzqXiOesGAef550346pWEZNGPLfNnKAwqPgkp8Q8tV9i0srjzyttqFAlLqhA76yST3kuX+QS0VGepSUTV+kkfxCaHZagxtX9Xve5RNybu4B44UmHWIGJnS6ijYpxWKwvWnMmBCIezFbZYyqsiXYC+9d5RfBgNFQ4PlRfmY0vnJlwUhx1AnyL9jsxnthwl9CNczo4mgBqnCSXxlhXNHz6ToMQuhgdhnqm5+qqJzI5/eUugxh8CW18qZTZBkrnL4DxEMm+bQ2QT8O07ZHrEDPKPXxQw7tBsphWvECetJ4DxXfNaf59GrY+eD6TFZuxurB5Vvo6s="
  file_glob: true
  file: python-package/dist/*.whl
  skip_cleanup: true
  draft: true
  tag_name: $TRAVIS_TAG
  on:
72
    condition: "$TASK = bdist"
Guolin Ke's avatar
Guolin Ke committed
73
74
    tags: true
    all_branches: true