This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
49 lines (49 loc) · 3.25 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
sudo: required
language: scala
services:
- docker
scala:
- 2.11.11
- 2.12.8
jdk:
- openjdk8
cache:
directories:
- "$HOME/.m2/repository"
- "$HOME/.sbt"
- "$HOME/.ivy2"
before_script:
- docker-compose -f localstack/docker-compose.yml pull
- docker-compose -f localstack/docker-compose.yml up -d
- docker ps -a
script:
- sbt ++$TRAVIS_SCALA_VERSION clean coverage scalafmt::test test it:test
# Tagged releases
- if [ $TRAVIS_TEST_RESULT -eq 0 -a "$TRAVIS_PULL_REQUEST" = "false" ] && [[ "$TRAVIS_TAG"
=~ ^v[0-9]+\.[0-9]+(\.[0-9]+)?(-M[0-9]+)?$ ]]; then echo "** Publishing Release
$TRAVIS_TAG **" && tar xf secrets.tar && mkdir ~/.bintray && cp publishing/.credentials
~/.bintray/ && sbt ++$TRAVIS_SCALA_VERSION publish bintrayRelease bintraySyncMavenCentral;
fi
# Snapshots (anything merged into master)
- if [ $TRAVIS_TEST_RESULT -eq 0 -a "$TRAVIS_PULL_REQUEST" = "false" -a "$TRAVIS_BRANCH"
= "master" ]; then echo "** Publishing Snapshot from master **" && tar xf secrets.tar
&& mkdir ~/.bintray && cp publishing/.credentials ~/.bintray/ && cp publishing/.artifactory
~/.bintray/ && sbt ++$TRAVIS_SCALA_VERSION publish; fi
after_script:
- docker-compose -f localstack/docker-compose.yml down
after_success:
- sbt ++$TRAVIS_SCALA_VERSION coverageReport coveralls
before_cache:
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
env:
global:
- DOCKER_COMPOSE_VERSION=1.19.0
- secure: KffThTeOg0ELt+iw5Z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OWfsj3nLNnyfcjRAClQzEWCoAbx7Tkgj1OmvrOqwwmiPz3dFMInawQ6RkisqwgjT/sAhNGa2i26Tpj5Sd8XAjxU61MAzsr8gpVdA6TJcSdHkHC2zZVn+64Cc9WHJ9I6WbRD0fR3pFeTbQv+0SOUWV1owqtdGLl6z0gdI5rLZIYO7SMeRPjTYf/5NV/WxF2LcJu06LHYpzURaGQHp6T5NH2eEZof1Dt5tqa2eQ7KfZyui3rz3WB0AQlJSPK9yL78BvZzNlCNWbv5wLiW6hQ=
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then openssl aes-256-cbc -K $encrypted_09ef3e55c311_key -iv $encrypted_09ef3e55c311_iv -in secrets.tar.enc -out secrets.tar -d; fi'