forked from Tudat/cspice
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
70 lines (60 loc) · 2.29 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
language: c
sudo: required
# Do not build branches of the form "pr/*". By prefixing pull requests coming
# from branches inside the repository with pr/, this avoids building both the
# branch push _and_ the pull request.
branches:
except: /pr\/.*/
before_install:
- chmod +x ./tools/install_deps.sh
- chmod +x ./.travis_scripts/install_miniconda.sh
- chmod +x ./.travis_scripts/conda_setup.sh
- chmod +x ./.travis_scripts/lib_version.sh
- chmod +x ./.travis_scripts/build_test.sh
- chmod +x ./.travis_scripts/deploy.sh
# - sudo apt-get update
# - chmod +x ./tools/install_travis.sh
# - sudo apt-get -y install libxml2-dev
matrix:
include:
# - env: BUILD_TYPE="OSXDebug"
# os: osx
# osx_image: xcode9.4
- env:
- BUILD_TYPE="OSXRelease"
- MATRIX_EVAL="CC=clang-3.6 && CXX=clang++-3.6"
os: osx
osx_image: xcode9.4
jobs:
include:
- stage: "Install dependencies and setup"
- name: "Install miniconda 3"
script: ./.travis_scripts/install_miniconda.sh && ./tools/install_deps.sh
- name: "Initialise conda"
script: ./.travis_scripts/conda_setup.sh
- name: "Get lib versions"
script: ./.travis_scripts/lib_version.sh
- name: "Download and install miniconda"
script: ./.travis_scripts/conda_setup.sh
- stage: "Build, test and deploy (master/develop)"
script: ./.travis_scripts/build_test.sh
- stage: "Deploy (master/develop)"
script: ./.travis_scripts/deploy.sh
# - stage: ""
# script:
# - mkdir build
# - cd build
# # NOTE: currently, travis does not stop automatically if one of these
# # 2 scripts returns an error code. Thus, we run them together as a single
# # command, so that if install_deps.sh fails the whole build fails immediately
# # rather than executing install_travis.sh as well. See
# # https://github.com/travis-ci/travis-ci/issues/1066
# - ../tools/install_deps.sh && ../tools/install_travis.sh
#notifications:
# email: false
# webhooks:
# urls:
# - https://webhooks.gitter.im/e/4e99a1581d9b99397e5f
# on_success: change # options: [always|never|change] default: always
# on_failure: always # options: [always|never|change] default: always
# on_start: never # options: [always|never|change] default: always