-
Notifications
You must be signed in to change notification settings - Fork 44
/
.travis.yml
43 lines (43 loc) · 3.13 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
branches:
only:
- master
language: java
jdk:
- openjdk8
services:
- docker
before_install:
- npm install --prefix ./client ./client
script:
- ./server/gradlew -p ./server/ check assemble || travis_terminate 1
- npm run --prefix ./client test || travis_terminate 1
- npm run --prefix ./client build
after_success:
- docker build -f ./Dockerfile-client
--label "TRAVIS_BUILD_NUMBER=$TRAVIS_BUILD_NUMBER"
--label "BRANCH=$TRAVIS_BRANCH"
--label "TAG=$TRAVIS_TAG"
--label "COMMIT=$TRAVIS_COMMIT"
-t marcnuri/isotope:client-latest ./
|| travis_terminate 1
- docker build -f ./Dockerfile-server
--label "TRAVIS_BUILD_NUMBER=$TRAVIS_BUILD_NUMBER"
--label "BRANCH=$TRAVIS_BRANCH"
--label "TAG=$TRAVIS_TAG"
--label "COMMIT=$TRAVIS_COMMIT"
-t marcnuri/isotope:server-latest ./
|| travis_terminate 1
- echo "$DOCKER_HUB_PASSWORD" | docker login -u "$DOCKER_HUB_USER" --password-stdin
|| travis_terminate 1
- docker push marcnuri/isotope:client-latest
- docker push marcnuri/isotope:server-latest
- sonar-scanner
addons:
sonarcloud:
organization: "manusa-github"
token:
secure: "H9j4Ck+zuPrBWyvYBZ8EuYnw2z3IdV0AfQVG870IimGujsrM0g3+J6Ph1MFHDy/ls0kAGW0WbAEYGwqaaMEx4zBOztdlUFNQ/SfqQNOvufAx5XarrpMnbpy35oicMbE3ZjXqYAJ1w9Y8+stxYyYzGbd2RvAzadLBcLRVsimMj+3A5adLwwcnkE594pJRmcqHNwDhIk97wOBZf40ZynB/tWkl8nOuj/v8LTGV/ErXhzv023bMNnKyrmlLlQ78E+MPjP4jOsoyOaqVc8ThbBdqqDIGVS3qaT3+euhGYs0sKJh79kNvqQE1UdNqM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