forked from akka/alpakka-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (35 loc) · 2.05 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
language: scala
jdk: oraclejdk8
jobs:
include:
- script: cd alpakka-sample-http-csv-to-kafka && sbt compile
name: Compile Alpakka Http Csv Kafka sample
- script: cd alpakka-sample-jdbc-to-elasticsearch && sbt compile
name: Compile Alpakka JDBC to Elasticsearch sample
- script: cd alpakka-sample-kafka-to-elasticsearch && sbt compile
name: Compile Alpakka Kafka to Elasticsearch sample
- script: cd alpakka-sample-mqtt-http-to-s3-java && sbt compile
name: Compile Alpakka Mqtt Http S3 sample
- script: cd alpakka-sample-sqs-java && sbt compile
name: Compile Alpakka Sqs Java sample
- script: cd docs && sbt makeSite
name: Build documentation website
- stage: publish
script: eval "$(ssh-agent -s)" && cp .travis/id_rsa /tmp/id_rsa && chmod 600 /tmp/id_rsa && ssh-keygen -p -P "$DEPLOY_PASSPHRASE" -N "" -f /tmp/id_rsa && ssh-add /tmp/id_rsa && cd docs && sbt ghpagesPushSite
stages:
- name: test
# runs on main repo master commits
- name: publish
if: repo = akka/alpakka-samples AND branch = master AND type = push
before_cache:
- find $HOME/.ivy2 -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot
- $HOME/.sbt/launchers
env:
global:
# travis encrypt DEPLOY_PASSPHRASE=...
- secure: "uoQV67/O+vpfM2P5E4WGVTkl/8c76p2SCIXkFXoiO0LhwAOju/xzDyqAIav6UeA+0LvlPmlKybcU8pM3qUF4zYG/Xk5ByFj6OHCZJcAj3sXZItfSjet38BV9D8KbpitAykMk2q01cazs3LVHFsCh5qbjwK8FFsPNlR5njN8Z/KKr1UMBBDMtoDsLnEu+/ylbHSHDYdfQKiDQwWGbLmmShWyunxygyX1VNFETqqpVMvM5yWcDyW+IqdBmENycm72NuPdTHLlhPFOMSgMCfSuctSZgA32xHNGhw12AAfsKe2pOGNjh5UMLGJXZALK/T0uUDlpP+KCAq8JaU4krygievRAtGndJm3rrFzm7Q5ftxgIrhwXvyGUC3S3cXMufLughgNnc88VagsBb3jIsGE+LQrGuDscLVF4T1oZoxGsEYsO8jXiJw9268M7HPA3poUXCi5x6unGPaNvIPYVNihp1oCZz13VrCIDZYqlf7jLVmvElHLNZPTWhBkXncmoSmZBkN0dV8144iY/BOXYkPePa+4qx+7882HjO0IHgETllZFALL37JiLs3FNWdfLkdzEo24gkz1iUIFjesReMC5ifeTH87kq7WJlsDskgdhOsCDYRYJM26xUsHkmoL5C9grIigsYl+icuAQcCOWecw17sxlbxxQSbMVrkSGGrIy6YN8cA="