-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
80 lines (73 loc) · 2.92 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
sudo: false
dist: bionic
services:
- xvfb
language: java
jdk:
- openjdk8
cache:
directories:
- $HOME/.m2
addons:
apt:
packages:
- python3
- python3-pip
env:
global:
- DISPLAY=:99.0
secure: "jRTwmxGN44/QLBhfbwrHYKDmjYfF6xcmC/8B/4dxyoqLJxccHKKSn6zKvZsYDf35n8nXKG/MlqHmyyNDutTmzIBx6d7ev4aUGVlD2zMHIRsIP1rjC8N9jery4AQA8rqUUybgYv2fbh0+7VfeuybAAehYX2wsvw2MC0dS8nITCa6nKI98lFJPVqKijcIm4sM07IErZefk0ABD2dm6rL7Dp7jyrHQxemGpAgjRVcQFdqMCuavKkN/7m8Sfhjx+Fe+BpJo2imOIIyEFaEN1cozvCpzDsUcKAWTpvoMwhFaWi0gDjaaJodo4rnbAp0gt8Ygc+MMZnwgVkjmBzD0Y45tgiKBkMT8t2JIO8PfEsCPHNY+wctyJsNUnEjvbxIO2KjD+WAp85DWccqcH5nFm1hUJ7eYRkWVVVMqBxKjXEZmfvgIX10L0RmS3zPHk59An0XNY7RKwxFrqkrzlshm1Wx9PVumabOTcmDMQODfx0VtWCTtvia92XXxh84PL/b9t8NTiVeuPwW1hm7TSrl64KratWtFd5f/oT9ePYd+bcPVxwOcKMuT9gWAZt7hiPfnbsueVm5dyKYu9s9d9X4gYdxr5WjbTZ3oaOkq9r433vpbsBX/gbGvoJA6ZAEMoO9umt8GtSZHL4pEBWf06AwjnDwhhyOt1YOOXcD5uQeeub89bAKo="
branches:
except:
- master-support-osate-2.9.0
before_install:
- pip3 install --user --upgrade pip
- pip3 install --user testresources
- pip3 install --user --upgrade setuptools
- pip3 install --user GitPython github3.py
- "./git-setup.sh"
script:
- pushd tools
- mvn -P fmw-snapshot-repos clean verify
- popd
before_deploy:
- export RELEASE_PKG_FILE=$(ls tools/repository/target/com.collins.trustedsystems.fmw.aggregator.repository-*.zip)
- echo "deploying $RELEASE_PKG_FILE to GitHub releases"
- export RELEASE_PRODUCT_LINUX=$(find tools/ide -name "fmide-*-linux.gtk.x86_64.tar.gz")
- echo "deploying $RELEASE_PRODUCT_LINUX to GitHub releases"
- export RELEASE_PRODUCT_MACOSX=$(find tools/ide -name "fmide-*-macosx.cocoa.x86_64.tar.gz")
- echo "deploying $RELEASE_PRODUCT_MACOSX to GitHub releases"
- export RELEASE_PRODUCT_WIN=$(find tools/ide -name "fmide-*-win32.win32.x86_64.zip")
- echo "deploying $RELEASE_PRODUCT_WIN to GitHub releases"
- export SNAPSHOT_NUMBER=$(echo "$RELEASE_PRODUCT_LINUX" | grep -o "[0-9]\\{12\\}")
- echo "deploying snapshot number $SNAPSHOT_NUMBER"
deploy:
# Deploy update site back to repository
# - provider: script
# script: python3 .travis/push_update_site.py $TRAVIS_TAG
# on:
# tags: true
# Deploy nightly build to github releases
- provider: releases
api-key: $GH_TOKEN
file:
- "${RELEASE_PKG_FILE}"
- "${RELEASE_PRODUCT_LINUX}"
- "${RELEASE_PRODUCT_MACOSX}"
- "${RELEASE_PRODUCT_WIN}"
name: Nightly development build ($SNAPSHOT_NUMBER)
body: Automated CASE integration build of $TRAVIS_BRANCH ($TRAVIS_COMMIT) built
by Travis CI on $(date +'%F %T %Z').
prerelease: true
overwrite: false
skip_cleanup: true
target_commitish: $TRAVIS_COMMIT
on:
branch: master
condition: $TRAVIS_EVENT_TYPE =~ ^(api|cron)$
# Delete older nightly build releases
- provider: script
script: python3 .travis/manage_daily_builds.py
on:
branch: master
condition: $TRAVIS_EVENT_TYPE =~ ^(api|cron)$