-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
81 lines (72 loc) · 1.85 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
sudo: false
language: node_js
node_js:
- "6"
- "7"
- "8"
dist: trusty
services:
- docker
- node
branches:
except:
- /^pr\..*/
- /^features\..*/
only:
- master
- develop
- /^v[0-9]+\.){0,2}(\*|[0-9]+
#- /^deploy-.*$/
cache:
directories:
- $HOME/.djantajs/
before_install:
# Parameters used during release
- git config user.name "$GH_USER"
- git config user.email "$GH_USER_EMAIL"
# setup https authentication credentials, used by ./mvnw release:prepare
- git config credential.helper "store --file=.git/credentials"
- echo "https://$GH_TOKEN:@github.com" > .git/credentials
install:
# Override default travis to use the maven wrapper
#- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
script:
#- ./.travis/publish.sh
after_script:
- docker images
after_success:
# Run the coverage test routine
#- npm run coverage
# Only continue for 'develop' or 'release/*' branches
- if [ "$TRAVIS_BRANCH" =~ "^(develop$|feature//*)" ]; then
#docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
#docker push djantaio/djantajs-docker-server:"$TRAVIS_BRANCH";
echo "Trigged branch= $TRAVIS_BRANCH"
fi
#Deploiment process
deploy:
provider: npm
email: npmjs@djanta.io
skip_cleanup: true
on:
tags: true
repo: djantaio/djantajs
all_branches: false
node: 7
notifications:
email: false
slack:
rooms:
- djantaio:1GeeSv1noSekK9to1yTqsbDw#travis-ci
- djantaio:1GeeSv1noSekK9to1yTqsbDw#djantajs
on_success: always
#on_failure: always
template:
- Build <%{build_url}|#%{build_number}> (<%{compare_url}|%{commit}>) of %{repository}@%{branch}
by %{author} %{result} in %{duration}
webhooks:
urls:
- https://webhooks.gitter.im/e/527ecb157afe8c3f6eb9
on_success: change
on_failure: always
on_start: never