forked from acados/acados
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
115 lines (99 loc) · 2.6 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
language: c
env:
global:
- BLASFEO_TARGET=X64_AUTOMATIC
- HPIPM_TARGET=X64_AUTOMATIC
- ACADOS_UNIT_TESTS="ON"
- ACADOS_EXAMPLES="OFF"
- ACADOS_WITH_QPOASES="ON"
- ACADOS_LINT="OFF"
- ACADOS_OCTAVE_TEMPLATE="OFF"
- ACADOS_MATLAB="OFF"
- ACADOS_OCTAVE="OFF"
- ACADOS_PYTHON="OFF"
- ACADOS_ON_TRAVIS="ON"
os: linux
sudo: required
dist: xenial
group: travis_latest
services:
- xvfb
addons:
apt:
sources:
- llvm-toolchain-precise-3.7
- ubuntu-toolchain-r-test
- deadsnakes
matrix:
include:
- name: MacOS Build
os: osx
osx_image: xcode9.4
# osx_image: xcode10.1
python: 3.7
env:
- DEPLOY_NAME="osx-python"
- name: Linux Gcc6 - Octave NO_template
env:
- DEPLOY_NAME="linux octave gcc6"
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
- ACADOS_OCTAVE="ON"
- ACADOS_OCTAVE_TEMPLATE="OFF"
- ACADOS_UNIT_TESTS="OFF"
- name: Linux Gcc6 - Python interface
env:
- DEPLOY_NAME="linux python gcc6"
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
- ACADOS_PYTHON="ON"
- ACADOS_UNIT_TESTS="OFF"
- name: Linux Gcc4.9 - Octave interface + template
env:
- DEPLOY_NAME="linux octave gcc4.9"
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
- ACADOS_OCTAVE="ON"
- ACADOS_OCTAVE_TEMPLATE="ON"
- ACADOS_UNIT_TESTS="OFF"
- name: Linux Clang
env:
- DEPLOY_NAME="linux-python-clang37"
- MATRIX_EVAL="CC=clang-3.7 && CXX=clang++-3.7"
- ACADOS_OCTAVE="OFF"
- ACADOS_UNIT_TESTS="ON"
- ACADOS_EXAMPLES="ON"
# - name: Linux Gcc5
# env:
# - DEPLOY_NAME="linux-python-gcc5"
# - MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
cache:
ccache: true
directories:
before_install:
- eval "${MATRIX_EVAL}"
- SECTION='before_install'
- export SCRIPT_DIR="${TRAVIS_BUILD_DIR}/ci/${TRAVIS_OS_NAME}"
- export SHARED_SCRIPT_DIR="${TRAVIS_BUILD_DIR}/ci/shared"
- source "${SCRIPT_DIR}/dispatch.sh"
- python --version
- python3 --version
install:
- SECTION='install'
- source "${SCRIPT_DIR}/dispatch.sh"
script:
- SECTION='script'
- source "${SCRIPT_DIR}/dispatch.sh"
after_success:
- SECTION='after_success'
# - mkdir -p "${DEPLOY_FOLDER}"
- source "${SCRIPT_DIR}/dispatch.sh"
before_deploy:
- cd "${ACADOS_INSTALL_DIR}/lib/"
- tar -zcf acados-$TRAVIS_TAG-$TRAVIS_OS_NAME.tar.gz *
- cd ../..
deploy:
provider: releases
api_key: "${GITHUB_OAUTH_TOKEN}"
file_glob: true
file: "${ACADOS_INSTALL_DIR}/lib/acados-*"
skip_cleanup: true
on:
tags: true