-
Notifications
You must be signed in to change notification settings - Fork 235
/
.travis.yml
59 lines (51 loc) · 1.18 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
language: c
env:
global:
- CASADIPATH="${HOME}/casadi"
- ACADOS_INSTALL_DIR="${HOME}/acados"
- DEPLOY_FOLDER="${HOME}/deploy"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- deadsnakes
matrix:
include:
- name: MacOS Python Interface Build
os: osx
osx_image: xcode9.4
env:
- DEPLOY_NAME="osx-python"
- name: Linux Python Interface Build
os: linux
sudo: required
dist: trusty
env:
- DEPLOY_NAME="linux-python"
- CXX="g++-6"
- CC="gcc-6"
cache:
ccache: true
directories:
- "${CASADIPATH}"
before_install:
- 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"
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"
deploy:
provider: releases
api_key: "${GITHUB_OAUTH_TOKEN}"
file_glob: true
file: "${DEPLOY_FOLDER}/*"
skip_cleanup: true