-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
31 lines (25 loc) · 882 Bytes
/
.travis.yml
File metadata and controls
31 lines (25 loc) · 882 Bytes
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
language: java
jdk:
- oraclejdk8
sudo: false
cache:
directories:
- $HOME/.m2
branches:
only:
- master
- develop
install:
- PATH=$TRAVIS_BUILD_DIR:$PATH
- cp .travis.settings.xml $HOME/.m2/settings.xml
- curl -fL https://getcli.jfrog.io | sh
- chmod +x jfrog
- jfrog rt config "cishell-artifactory" --url "https://cishell.jfrog.io/cishell/" --user $CI_DEPLOY_USERNAME --apikey $CI_DEPLOY_PASSWORD --interactive=false
script:
- mvn deploy &&
cd $TRAVIS_BUILD_DIR/deployment/org.cishell.p2/target/repository &&
jfrog rt delete "reference-gui/updates/*" --quiet &&
jfrog rt upload "./*" "reference-gui/updates/" --flat=false &&
cd $TRAVIS_BUILD_DIR/deployment/org.cishell.reference.releng/target/products-final &&
jfrog rt delete "reference-gui/latest/*" --quiet &&
jfrog rt upload "./*" "reference-gui/latest/" --flat=false