-
Notifications
You must be signed in to change notification settings - Fork 113
/
.travis.yml
72 lines (61 loc) · 1.38 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Use cpp to enable both R & Python
language: r
r: release
os: linux
dist: xenial
branches:
only:
- master
- develop
- /release\/.*/
- /hotfix\/.*/
- /bugfix\/.*/
env:
global:
# Don't treat missing suggested packages as error
- _R_CHECK_FORCE_SUGGESTS_=false
# Use cache for packages
cache:
apt: true
packages: true
directories:
- $HOME/miniconda3
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- git
- gcc-7
- g++-7
- gfortran-7
- libcurl4-openssl-dev
- libxml2-dev
- libgit2-dev
- libharfbuzz-dev
- libfribidi-dev
jobs:
include:
- name: 'Test R codes'
env: TARGET='R'
- name: 'Test Python codes (Python 3.6)'
env: TARGET='Python' && PYTHON_VERSION=3.6
- name: 'Test Python codes (Python 3.7)'
env: TARGET='Python' && PYTHON_VERSION=3.7
- name: 'Test Python codes (Python 3.8)'
env: TARGET='Python' && PYTHON_VERSION=3.8
before_install:
- export ROOTPATH=`pwd`
- export MAKEFLAGS='-j 2'
- export CC=gcc-7
- export CXX=g++-7
- if [ "$TARGET" = "R" ]; then cd $ROOTPATH/R; fi
- if [ "$TARGET" = "Python" ]; then cd $ROOTPATH/Python; fi
install:
- source $ROOTPATH/travis/setup.sh
script:
- source $ROOTPATH/travis/script.sh
after_failure:
- source $ROOTPATH/travis/after-failure.sh
after_success:
- source $ROOTPATH/travis/after-success.sh