-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
36 lines (32 loc) · 2.27 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
language: java
sudo: required
jdk:
- openjdk8
services:
- docker
- mongodb
- mysql
install:
- nvm install node
- npm install -g bower
- npm install -g brunch
- npm install
before_script:
- mvn package -Dmaven.test.skip=true
script:
- echo "Here mvn test should be placed"
after_success:
# dont create docker on pull request
- export REPO='indigodatacloud/slam'
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
- if [ "$TRAVIS_PULL_REQUEST" = "true" ]; exit 0; fi
- export DOCKER_BUILD_BRANCH=${DOCKER_BUILD_BRANCH:-master}
- if [ "$TRAVIS_BRANCH" = "$DOCKER_BUILD_BRANCH" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
docker build -t $REPO:latest . ; docker push "$REPO:latest" ; exit 0 ; fi
# this is tagged branch, unfortunately we have no way to determine if this is master
- if [ -n "$TRAVIS_TAG" ]; then
docker build -t "$REPO:$TRAVIS_TAG" . ; docker push "$REPO:$TRAVIS_TAG" ; exit 0 ; fi
env:
global:
- secure: hwbMhBU9BNbbtziIbfaHXA8rAn/PD4CJrCEjNaVVX7CQ5SyEflYZTpNiVG53RR0AFqy69eU8OFpvDCkavBVbInToCIRR3lkWx9Xq3Dfi2YXfGCp+8dPBN1VOtmYntpUYK1RRp5U7atoOg6XDS8E3/B00HnmXotmtV5Yw1s1Ks3C4NBdOL8i1IuaWTO51fynkVGLl6OCq2nWp4dmVHfdJcXhdd6tnlqPAEWKfcZi7DrpHO6VqPbxueG75i91+y0cWZloLMS7EhhMhbLCmOhgRdmwRFqSLW5zLC/CTuJxwCVBeMLp5q1RrS2WbTiIsGmUouXmaYOmBYmmrhexBnTAvlLJXUwDOWzMeY8EWq2rWoGlRvZnwNaCPEzunP94X33cYM0Mwc/DjDsUAXEDjRtNdKbfI0f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