forked from itemisCREATE/statecharts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (62 loc) · 2.25 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
sudo: false
language: java
dist: precise
jdk:
- oraclejdk8
addons:
apt:
packages:
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}/googletest-release-1.8.0/googletest
- LIBRARY_PATH=${TRAVIS_BUILD_DIR}/googletest-release-1.8.0/googletest/build:${TRAVIS_BUILD_DIR}/googletest-release-1.8.0/googlemock/build:$LIBRARY_PATH
- CPATH=${TRAVIS_BUILD_DIR}/googletest-release-1.8.0/googletest/include:${TRAVIS_BUILD_DIR}/googletest-release-1.8.0/googlemock/include:$CPATH
- GMOCK_HOME
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "e6AtFe0HJAHRdmzp4uXx4b+xZaEUUd2jeYiLdIkYuRa84op9iSzCmPj5uT3Vkvqps5snBrDx47Wl1EO9rl+Z91WYp1JgTT5Ek37SKj/ikhJ0HfAYBycU/MRTMO5wXEfwL29G0gjygzFxlUe7t/Y92M/VsvlEQ9nHrtqJ4hQA968="
matrix:
- TARGET=Mars.target
- TARGET=Neon.target
- TARGET=Oxygen.target
before_script:
- wget https://github.com/google/googletest/archive/release-1.8.0.zip
- unzip release-1.8.0.zip
- cd googletest-release-1.8.0/googlemock
- mkdir build && cd build && cmake .. && make
- export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
- cd ../../googletest
- mkdir build && cd build && cmake .. && make
- export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
- cd ../..
- export GMOCK_HOME=`pwd`
- 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: f48bN42ninJcN0yp8T9DU7ay9aQVjbEcxEvD/UCEMBNBOnBFgomtFGa0jFMtbIwQk6Vx5yYcs0dDtNWqPsoq6v5m9eihVujhLx456yhzpin03kjydSQipjTbpZjsw+yUHx79QfqAIjGsAilU3uWVTBhTXEjEm0DFuJvOYgpuJA8=
file: releng/org.yakindu.sct.repository/target/updatesite.zip
on:
tags: Yakindu/statecharts
condition: "$TRAVIS_TAG =~ ^release.*$"
notifications:
slack: itemis:GpMT4EcgEk90uVGX2BZS1XB3