forked from precog/quasar-destination-s3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (49 loc) · 4.12 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
language: scala
scala: 2.12.10
jdk: openjdk8
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt
- $HOME/.coursier/cache
env:
global:
- COURSIER_PROGRESS=0
- SBT=./sbt
# ENCRYPTION_PASSWORD
- secure: "JjSj317n8p5Qi4f7OPI8BFY1fIfEIa09wFDo/czqmt7OLQg2mS+s8T0H3+OKnpgXZO9w2zj6t/+sVsqf7bM20+n+vb4FSxnAMEBTVio+JbggWGEvDucoiAfWVl944el7jNxA3hYME9GRI8XRvETW/nG7iVm4RJNAoHFUIrHG5/gPJzq8AqS5kO6GNwzQkCf1b1VK/2Cn2TGIyuu1BwgiJLkr/WHPRJNBCv+8xIz2xIyxq8d5OYsAF8b0FWN4HW+c673dW5J5vV6PlM/g6VaYISZaH+1OnrDhMPNgqHwyyNUb14fpmtoMrWOg3E//4grbku2pN5uJj3KVCZl5aftbkgsHF5X9yVKHRfEFsm1+yb2REYRaKgOKutXeqxW3gekoqK4Xhi1kGssxBkfs9wYxeHYcU8PC9gnfRjThtMqG7ko1FnMGv6S1R9GTf9N/DGogsOYqUxBgjnE/yTwGEl0I1IJc1zO4fX0TLgyJWU6LrBf+4Fz1tmZCy05LZX55NVvYdjYHFe3Es5fl5CeS9zOBA5tdjB6Ta81FTxFKvm13fBvLhu5pajOSMlTiLFXImHyQUH0+/ukfJQ0TJ4DwgC7kCR+aLwCPAgR7EfDEK5ZcRG7DeFTMbM16NmiSOn2E0eTtF9nbL7DFUKfo0/ACZuy0u/Ce7TN8V38Sj+kHo3V5Xjs="
# GITHUB_TOKEN
- secure: "doxPLw7zu0YV3DM2C+CxPa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Z8212XHcSTTE/u9a2fx9eFudMKP+36qE1Fwd3PWm0OGSKup7JbF8ob3ItLvgyV01d1VonTateAnllA44UGH7Y4QROSDMVf6yemvqulIlUI8/JSVlF/9dhy1Rdgq/TXRsBzi1Ea2Plg0hux/OqGz+V9KZtOUFV16JQ9EZXdlDqBdU8McCvr+pMb3SdRfV4WFZ7NXz4sty3bVduoW8Xiy85X3UJavv7D2WLjmiNdHFnKK0+pMUgfh/Rj7Rp0Lj02/DeB8uOsZdKTE28VEopZk2Hc9Bw="
# DISCORD_WEBHOOK_TOKENS
- secure: "ip94khoy+1Fqem6u8bOoWc+Q4j9MI1F3kv/lwwmjs2NiTaV9OHEBcw/LoW7poXfn1R1fP4PMdjPKVWvd7bfaIZhjbPbUpPuw3H3EZ20qI5AZ8/lGZk592mCFuRs9TYOwl674b3kJa6SeCm/tiH/oGaZxTgfwe/yDRwIrwXc8nFphVtus6/V3ZT8G3lhmAVeXrhoHdCR8oWHPTh2/gk0RbcIfMePPKjz+PfJUx7KH8WJhkDCz2QF11814s91jdBt8Z/nVJc8s5DXLeIhQKFMEJTABG2KlJl0LWSWRCdPLkSMOO3Yd0hRIo/BPXGmoqE+eCpWADlsqTxFaJHhSZraSLqPka7Z1pJK2GayTPzamUArxavcqClk1uMmdNmhcIeBm6zjh2w2sJiVz13PR8uzp8ml6cXbxaJkYnveifN+6r51rpegYWyJx73z42cD3QCLr3r+dLn6+SK7SwLiKs9St3haYg74HyQ4qdi01jhNb3vdFVHfiE9fKw+YmqScCrmW2IHiHGn0tOWhSf1ZPmHGrY/5AqxGrVYAaheFG3QvYwFTqR1zwc6N3fz8rgq++irNbKQd6R/7EY+bwvH/4Or2uDG7tfWBd0l2CmKL1A2CvB3uZsrDRW9WIVXKxGvP/fpWaXyPVUmDYHK467roAIzh8GVlKpLdVwXtcoIZ2qgfp8BQ="
install:
- mkdir scripts
- $SBT transferCommonResources
- scripts/commonSetup
script:
- set -e
# Just protecting against automated scrapers
- base64 -d testCredentials.json.b64 > testCredentials.json
- $SBT ++$TRAVIS_SCALA_VERSION test
- |-
if [ $TRAVIS_PULL_REQUEST == "false" ] && [[ "$TRAVIS_BRANCH" =~ backport/v.*|master ]]; then
$SBT transferPublishAndTagResources;
TRAVIS_JOB_NUMBER=1 scripts/publishAndTag 'slamdata/quasar-destination-s3';
bumpInDownstream() { echo $1 > slamdata-destination-s3-version; }
export -f bumpInDownstream
scripts/bumpDependentProject slamdata slamx bumpInDownstream
fi
after_success:
- scripts/checkAndAutoMerge
- scripts/discordTravisPost success https://discordapp.com/api/webhooks/$DISCORD_WEBHOOK_TOKENS
after_failure:
- scripts/discordTravisPost failure https://discordapp.com/api/webhooks/$DISCORD_WEBHOOK_TOKENS
branches:
only:
- master
- /^backport.*$/
before_cache:
- find "$HOME/.sbt/" -name '*.lock' -delete
- find "$HOME/.ivy2/" -name 'ivydata-*.properties' -delete