-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (53 loc) · 4.15 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
language: java
jdk:
- oraclejdk8
sudo: required
git:
depth: 5
branches:
only:
- "/^(?i:SWIK)-.*$/"
- master
- /^\d+(\.\d+)+$/
cache:
directories:
- "$HOME/.sbt"
- "$HOME/.ivy2"
before_install:
- ./travis_scripts/install_activator.sh
- export PATH=$PATH:~/.activator/bin/
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ] ; then ./travis_scripts/install_compose.sh ; fi
before_script:
- activator update
script:
- activator compile
after_success:
- activator test
- openssl aes-256-cbc -K $encrypted_5ed05c44ff65_key -iv $encrypted_5ed05c44ff65_iv -in deployment_keys.tar.enc -out deployment_keys.tar -d
- activator clean docker:stage
- cp Dockerfile target/docker/
- cp application.conf.template target/docker/stage/opt/docker/
- cp entrypoint.sh target/docker/stage/opt/docker/
- cd target/docker
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ] ; then ../../travis_scripts/dockerhub.sh ; fi
- if [[ "$TRAVIS_TAG" =~ ^[0-9]+(\.[0-9]+)+$ ]] ; then ../../travis_scripts/dockerhub.sh ; fi
- cd ../../
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ] ; then ./travis_scripts/deploy.sh ; fi
after_script:
- rm -f deployment_keys.tar
- rm -f ~/.docker/{cert.pem,key.pem,ca.pem,config.json}
services:
- docker
notifications:
slack:
on_success: change
on_failure: always
rooms:
secure: aOpr6rvtR7x4BQ+x8//2SFvgiNMKEaLTFr+B44p61ntK9PzOL5Zs9rMc7sFFG8QXNrk8mfTlT8rql5baAObRGPcrcJiA4ydakv2o9w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