-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
85 lines (80 loc) · 2.28 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
73
74
75
76
77
78
79
80
81
82
83
84
85
env:
global:
- DOCKER_IMAGE_NAME=bable-cpp-compiler
- DOCKER_CONTAINER_NAME=bable
- CPP_BIN_DIR=tmp
- CPP_SRC_DIR=platforms/linux
- PYTHON_SRC_DIR=interfaces/python
cache:
pip: true
jobs:
include:
- stage: test
language: python
python: 2.7
install:
- pip install tox-travis
script: tox -r -c ${PYTHON_SRC_DIR}
-
language: python
python: 3.6
install:
- pip install tox-travis
script: tox -r -c ${PYTHON_SRC_DIR}
-
language: cpp
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
install:
- mkdir platforms/linux/build
- cd platforms/linux/build
- cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/usr/bin/gcc-4.9 -DCMAKE_CXX_COMPILER=/usr/bin/g++-4.9 -DBUILD_TESTS=ON ..
- make -j 2
script: env CTEST_OUTPUT_ON_FAILURE=1 make test
- stage: deploy on Pypi
sudo: required
services:
- docker
language: python
python: 2.7
install:
- pip install --upgrade -r interfaces/python/build_requirements.txt
script: skip
before_deploy:
- docker build -f tools/cpp-compilation/Dockerfile -t ${DOCKER_IMAGE_NAME} .
- docker-compose -f tools/cpp-compilation/docker-compose.yml up
deploy:
- provider: script
script: python tools/release.py --build_sdist ${TRAVIS_TAG} ${PYTHON_SRC_DIR} ${CPP_BIN_DIR}
skip_cleanup: true
on:
all_branches: true
-
sudo: required
services:
- docker
language: python
python: 3.6
install:
- pip install --upgrade -r interfaces/python/build_requirements.txt
script: skip
before_deploy:
- docker build -f tools/cpp-compilation/Dockerfile -t ${DOCKER_IMAGE_NAME} .
- docker-compose -f tools/cpp-compilation/docker-compose.yml up
deploy:
- provider: script
script: python tools/release.py ${TRAVIS_TAG} ${PYTHON_SRC_DIR} ${CPP_BIN_DIR}
skip_cleanup: true
on:
all_branches: true
stages:
- test
- name: deploy on Pypi
if: tag =~ /^[0-9]+\.[0-9]+\.[0-9]+$/
notifications:
email: false