forked from OpenAADL/polyorb-hi-c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
87 lines (69 loc) · 2.34 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
################################################################################
# Ocarina travis-ci configuration file.
# This script compiles and test Ocarina for Linux and OS X targets
#
# Note: this travis-ci script is adapted from
# https://github.com/AdaCore/Ada_Drivers_Library
#
# Thanks to AdaCore for providing it
################################################################################
# Note: we are using 'generic' as a language. We need GNAT to compile
# Ocarina, and Python to run Ocarina testsuite. We install a specific
# GNAT GPL release to compile and run everything.
language: generic
osx_image: xcode8.3
# Global variables
env:
global:
- TOOLS_DIR=$HOME/build_tools
- INSTALL_DIR=$HOME/tools
################################################################################
# Host to run the various tests
os:
- linux
- osx
################################################################################
# Install the build environment, derived from travis default installation
# 1/ Cache directory that allows us to not download GNAT GPL every time,
# speeding up the process.
cache:
directories:
- $HOME/build_tools
- $HOME/tools
# 2/ Check Python installation
before_install:
- which python
# 3/ Install GNAT
install:
- git clone https://github.com/OpenAADL/ocarina-build.git ; ( cd ocarina-build ; ./build_ocarina.sh --install-gnat-ce ; cd $HOME)
- export PATH=$HOME/tools/bin:$PATH
- echo $PATH
################################################################################
# Main processing starts here
script:
# Show GNAT version for the record
- gcc --version
- gnatls -v
# Just build
- ( cd ocarina-build ; ./build_ocarina.sh --scenario=travis-ci )
# Codecov.io
after_success:
- bash <(curl -s https://codecov.io/bash)
################################################################################
#
before_deploy:
- export OCARINA_SRC=$(find . -name "*tar.gz")
- echo $OCARINA_SRC
- export OCARINA_BIN=$(find . -name "*tgz")
- echo $OCARINA_BIN
deploy:
provider: releases
api_key:
secure: JIs5VZq+T0m42jasHpuDHXjJwgmQNGDaNJos9xHG01b5tvrG9NRIPjB4AFh1RiJBQ8LYFRpcRkrEzbAHs9H4jh7zLrdaAGRo6v0G/h5aowWNGoTiT6sMy5ATX6cuMO/treCEWWEUpUsDy5GSebsRkGhbMjH3d2kZ3933SJIg+kI=
skip_cleanup: true
file:
- "${OCARINA_SRC}"
- "${OCARINA_BIN}"
on:
tags: true
all_branches: true