-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.travis.yml
45 lines (42 loc) · 1.46 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
git:
depth: false
clone: false
branches:
only:
- master
language: java
jdk: oraclejdk8
install: true
cache:
directories:
- "$HOME/.m2"
before_install:
- echo 'github.com ssh-rsa $PUBLIC_KEY' >> ~/.ssh/known_hosts
- git clone "https://github.com/onsense/universe.git" .
- git remote set-url origin "https://${GITHUB_TOKEN}@github.com/onsense/universe.git" > /dev/null 2>&1
- git fetch --force origin "$TRAVIS_BRANCH:remotes/origin/$TRAVIS_BRANCH"
- git reset --hard "HEAD"
- git checkout -q -B "$TRAVIS_BRANCH"
- git config --global gc.auto 0 || true
- git config user.name "$COMMIT_AUTHOR_NAME"
- git config user.email "$COMMIT_AUTHOR_EMAIL"
- ls -la
- openssl version -a
- export COMMIT_MESSAGE=`git log -1 --oneline`
- openssl aes-256-cbc -K $encrypted_7525ba04b569_key -iv $encrypted_7525ba04b569_iv -in deploy_key.enc -out deploy_key -d
- eval "$(ssh-agent -s)"
- chmod 400 ./deploy_key
- ssh-add ./deploy_key
- git branch --set-upstream-to=origin/$TRAVIS_BRANCH $TRAVIS_BRANCH
- git pull
script:
- mvn clean install
deploy:
provider: script
script: chmod +x ./configure-maven.sh && ./configure-maven.sh && chmod -x ./configure-maven.sh
&& mvn --settings .mvn/conf/settings.xml --batch-mode --activate-profiles release
--fail-at-end org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare
-DskipTests=true -DskipITs=true -Darguments="-DskipTests=true -DskipITs=true"
skip_cleanup: true
on:
all_branches: false