-
Notifications
You must be signed in to change notification settings - Fork 1
/
._to_be_removed_travis.yml
80 lines (72 loc) · 1.97 KB
/
._to_be_removed_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
73
74
75
76
77
78
79
80
language: cpp
sudo: required
python: 3.6
dist: trusty
matrix:
include:
- os: linux
sudo: required
compiler: gcc-7
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- george-edison55-precise-backports]
packages:
- g++-7
- zlib1g-dev
- libbz2-dev
- libboost-dev
- cmake
- cmake-data
- make
- automake
- python
- python-nose
- python-jinja2
- python-pip
env:
- MB_PYTHON_VERSION=3.6
before_install:
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 70 --slave /usr/bin/g++ g++ /usr/bin/g++-7
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda3.sh;
- chmod +x miniconda3.sh
- ./miniconda3.sh -b
- export PATH=/home/travis/miniconda3/bin:$PATH
- conda update --yes conda
install:
- export PATH=/home/travis/miniconda3/bin:$PATH
- conda create --yes -n env_kprocessor python=$MB_PYTHON_VERSION
- source activate env_kprocessor
- conda install --yes -c conda-forge swig=4.0.1
- conda install --yes pytest
- BACK=$(pwd)
- pwd
- echo "Python version $(which python)"
- echo "******** Building kProcessor ********"
- mkdir build && cd build
- cmake ..
- make
- cd ${BACK}
- echo "******** Running kProcessor CPP Test Cases ********"
- cd ./build/tests/kProcessorLibTests
# - ./testKprocessorLib
script:
- cd ${BACK}
- echo "******** Building Python Interface ********"
- $(which python) setup.py bdist_wheel
- cd dist/
- $(which python) -m pip install kProcessor*whl
- cd ${BACK}
- echo "******** Running Python Interface Test Cases ********"
- echo "Python version $(which python)"
- cd ${BACK}
# - cd ./tests/python/
# - pytest
branches:
only:
- master
- development
- beta_v1
after_success:
- bash <(curl -s https://codecov.io/bash)