-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
35 lines (35 loc) · 1.35 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
language: java
jdk:
- oraclejdk8
sudo: false
install: mvn --version
env:
global:
- APP_NAME=suripu
- BUILD_NUMBER=0.8.$TRAVIS_BUILD_NUMBER
- secure: ZtcabJIbdoPJSX8tHU6Hocj1dknD/UxATnqvvVo3RK9CwWYlzEbO/3AyAqul78ythMOnvouU9dIFoxjxb4lek1nsd3dvSix7zNa4YVDvcj0+uV/IBl12OqTO2RnxlP5MPIeRzkrhs0vg1OfvxquMizBcBdF7MbwmdUtL1g1IA3A=
- secure: Ed/gOoioqi7oacM+HpYsBF8nfXE6sd3Y99ZtNKg4mTrNUB9adF9jijv2B669TP+L/QXNoMvZizF7Cq+JFxjgH39pEMuMJfMsci2upxEtymZRbWKv3Kr6wM8AF7Jdyinf71RkIZC3VffKOluQ6vSFx1O51oVuSyrjyGxOYraPKWI=
script:
- if [ $TRAVIS_PULL_REQUEST != 'false' ]; then
BUILD_NUMBER=${BUILD_NUMBER}-SNAPSHOT;
fi
- mvn clean
- mvn versions:set -DnewVersion=$BUILD_NUMBER
- mvn versions:commit
- mvn --settings settings.xml -DskipITs deploy
after_script:
- if [ $TRAVIS_PULL_REQUEST = 'false' ]; then
git config --global user.email "[email protected]";
git config --global user.name "Travis CI";
export GIT_TAG=$APP_NAME-$BUILD_NUMBER;
git tag $GIT_TAG -a -m "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER";
git push --quiet [email protected]:hello/suripu.git --tags;
fi
branches:
only:
- master
notifications:
email:
slack:
secure: aRgIgBV/1ZenkdCkXQ0xniTvgV6SWyLCb9dxoAPr3uUe+Tsy3B3Bso2ZJRPnef6kPtfZQX8JSAoVBaGosBVRMKJ2IDgb8KxfTKqQT4NKF+UJjOkGYY6C81A+Y5nl5Wt7xFjR8o0pn/C1kn0KS4gittVZcxB6BsFy2HYK1SPNd3w=