forked from itemisCREATE/statecharts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (51 loc) · 1.54 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
sudo: false
language: java
jdk: oraclejdk7
addons:
apt:
packages:
- libgtest-dev
coverity_scan:
project:
name: Yakindu/statecharts
notification_email: [email protected]
build_command: mvn -f ${TRAVIS_BUILD_DIR}/releng/org.yakindu.sct.releng/pom.xml clean verify
branch_pattern: coverity_scan
cache:
directories:
- $HOME/.m2
env:
global:
- DISPLAY=:99.0
- GTEST_DIR=${TRAVIS_BUILD_DIR}/gtest
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "SjGXYhNOkg6SDuiTo8NZYmqqWxTP+8CogkV9whFwonXGOY9xT1LxO8BD5Q3j2WM6I9gHPExsPyo6ejHq2D4yBjp8ylONtAFkR9Hmd/I9qbW2Tcj0MU3dRACu0L4ko1Uh33IvJWZX+XqTZQMRApch9Wuasj0daUSdYo81GSn5JWI="
matrix:
- TARGET=Mars.target
- TARGET=Luna.target
before_script:
- mkdir gtest
- cd gtest
- cp -r /usr/src/gtest/. .
- ls
- cmake CMakeLists.txt
- make
- cd $TRAVIS_BUILD_DIR
before_install:
- sh -e /etc/init.d/xvfb start - sleep 10
script:
- cd releng/org.yakindu.sct.releng
- mvn clean verify -P$TARGET,tests
- cd ../org.yakindu.sct.repository/target
- zip -r updatesite.zip repository
- cd $TRAVIS_BUILD_DIR
deploy:
skip_cleanup: true
provider: releases
api_key:
secure: BSEYtMYXInrXum0eOmisxDIUw5puH1WycKmXvnBJKn3GeekCWV2UCF4Elocmkil8MBzYQ3LlpiihncBalvVEzpgyVEo1Z0wnxiQtatZU0gMuw6piu+Owi5Om/kB6J4DvZShLt5qWYGVynBRhGsC4jFYpakCSHySy3icg1wI1sfI=
file: releng/org.yakindu.sct.repository/target/updatesite.zip
on:
tags: Yakindu/statecharts
condition: "$TRAVIS_TAG =~ ^release.*$"