-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.travis.yml
59 lines (54 loc) · 2.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
os:
- linux
- osx
language: c
compiler:
- gcc
- clang
# we will end up with four builds from the permutations of the OSes and
# compilers (i.e. linux w/ gcc, linux w/ clang, osx w/ gcc, osx w/ clang)
# install dependencies (swig, boost, python dev headers)
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install swig; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install python3-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install libboost-all-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade python; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install swig; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade boost; fi
# build mcell itself
script:
- git submodule init
- git submodule update
- mkdir build
- cd build
- cmake .. && make
# tar up mcell and libraries for distribution via bintray
- "tar czf mcell-${TRAVIS_OS_NAME}-$CC.tgz mcell lib"
- cd ..
env:
global:
# this hashed key is used by coverity, a tool for doing static analysis
secure: VPWYKTuN++NylNQFML3gEVi5GEy9AWCXPy0fS0ZJRJxz1oMt7roE9suZCUI5Q66hS2rwH+Zn/cOaphc/rSTg/wN8K2AGVpZ2p9IPQeCYnxy/HOh7wxZ/eR140sIoAZr68xRXP4KGpHsWduCDAzMAHQVk27u9Gp91bZeaPDv0eoE=
addons:
coverity_scan:
project:
name: mcellteam/mcell
description: Build submitted via Travis CI
notification_email: czech.jacob@gmail.com
build_command_prepend: cd ./src && ./bootstrap && ./configure
build_command: make
branch_pattern: coverity_scan
deploy:
provider: bintray
file: "./bintray.json"
user: jczech
key:
# If you need to regenrate this for some reason, here's what you do:
# travis encrypt <YOUR BINTRAY API KEY> --add deploy.key
# Get BINTRAY API KEY from https://bintray.com/profile/edit under "API Key" section
secure: PIaDd9+HTh2R5yMr1V7Cbpry4NB5cefY9j6jQpPJ+tJ73kP4oMOs+fZ288pgiYYskc8clYzVE00pixVmAXIpnzCpTYx7yWTGRA7USwfuFUvUtvu/U2bw0+PJpDyhfO4L3EV5NKuFZCxl+Spr6YrYnFUJtqfPOve5117G8R5dke8=
skip_cleanup: true
on:
all_branches: true