-
-
Notifications
You must be signed in to change notification settings - Fork 768
/
.travis.yml
66 lines (59 loc) · 4.39 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
dist: focal
language: java
os: linux
# Prevent running default install script
install: true
cache:
directories:
- "$HOME/.m2"
- "ugs-pendant/src/main/webapp/node"
- "ugs-pendant/src/main/webapp/node_modules"
before_script:
- sudo apt-get update -qq
- pip install --user codecov
# These are needed for deployments.
- sudo apt-get install -qq genisoimage
- sudo apt-get install -qq curl
- curl -fL https://getcli.jfrog.io | sh
script:
- echo "${JAVA_HOME}"
# Default to a snapshot build
- export REVISION="2.0"
- export CHANGELIST="-SNAPSHOT"
# If a travis tag was defined extract the version number and unset the snapshot
- if [[ $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then export REVISION=${TRAVIS_TAG:1}; export CHANGELIST=""; fi
# Build using the revision
- echo "Building version ${REVISION}${CHANGELIST}"
- mvn test install -B -Drevision=${REVISION} -Dchangelist=${CHANGELIST}
- codecov
# Make sure artifacts can be built
- mvn package -pl ugs-classic assembly:assembly -DskipTests=true -Drevision=${REVISION} -Dchangelist=${CHANGELIST}
- mvn package -pl ugs-platform/application -P create-autoupdate -DskipTests=true -Drevision=${REVISION} -Dchangelist=${CHANGELIST}
- mvn package -pl ugs-platform/application -P create-macosx-package -DskipTests=true -Drevision=${REVISION} -Dchangelist=${CHANGELIST}
- mvn package -pl ugs-platform/application -P create-win32-package -DskipTests=true -Drevision=${REVISION} -Dchangelist=${CHANGELIST}
- mvn package -pl ugs-platform/application -P create-win64-package -DskipTests=true -Drevision=${REVISION} -Dchangelist=${CHANGELIST}
- mvn package -pl ugs-platform/application -P create-linux-package -DskipTests=true -Drevision=${REVISION} -Dchangelist=${CHANGELIST}
- mvn package -pl ugs-platform/application -P create-pi-package -DskipTests=true -Drevision=${REVISION} -Dchangelist=${CHANGELIST}
deploy:
# Only deploy as nightly if master branch without tag
- provider: script
script: bash scripts/deploy.sh nightly
skip_cleanup: true
on:
repo: winder/Universal-G-Code-Sender
branch: master
tags: false
# Only deploy as release when tagged
- provider: script
script: bash scripts/deploy.sh $TRAVIS_TAG
skip_cleanup: true
on:
repo: winder/Universal-G-Code-Sender
tags: true
env:
global:
- ARTIFACTORY_NAME=ugs
- JFROG_CLI_OFFER_CONFIG=false
- secure: C6q/rpdH5CWXPdF2syv/WK/YpFJw1R2Cflj+kYgXxjUTFDEpJdbgUCecEBGUjxY+JBrnaPaZAymbGSIURu0xpulg2W369rhdBEPWMDYAx1FXWp3+dwc+Nt+bvDbmptTb16keiVQkqviZhPPDJIk9d9Q8fODXLv2cwN/8fzXDSxn1OTQSIf6k9yNLJQLAIJ9q0JKAPKY+vmRs0IlK64r2b++xg4ASITwjFUCPYIZeX8dvkEjoFOBxVdWYW07RH8Kl63GxuKMDsQWr85Axi3GwgD45ZX3vbogTtMCLPaMhEpSebi9Yx4WUYrLTjIIvfMxMOzNm/+2e9yHBikXdPMOQW/Pe74+5T0APb0v2bxViMhyatjCO1bzFgKrvaC4kZTqGwMuGfgXr9MmoJCRVWGq3JMcUN2MD+AqfD6yEVjLpS7k7hioPuN395TQvHEJCBv0EzOjGiKuvUn2RoUPxOC6OdZVEHsS7nKP7deUvus7+2QVkRQEauViRsuixq0qJwUom+K4DvhB6akxQnyUt99sX0ezgnkwOATf/R/tEKkbLpMPHWDE7DHJIjDIgIzsKnpLWxrhmNoTG+7TiGqhfT/p8Ys6LY9p0IjjvuMxijI4kgAc2S4GpZ4UGKNrDsnWzdmtp0kf1rauTyz3rjLzjx0wcf/xurFEJupOhIUtPjN0S+V0=
- secure: Ey1mfPV4EN2uIkPAvblB/UVl6i7cxTLmRrw4aO6IAuHTgP5osM2lkCB6nserF9izvWKBVk8s2ye/4VfdAZmgZ/ExPBo2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