forked from d2iq-archive/marathon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (35 loc) · 1.86 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
language: scala
before_script:
- export PROJECT_VERSION="`egrep -os -e '([0-9]\.)+[0-9](-\w+)?' version.sbt`" && echo Project Version is $PROJECT_VERSION
- export ARTIFACT="marathon-$PROJECT_VERSION.tgz"
- pushd src/main/resources/assets/ && npm install && ./bin/build && popd
jdk:
- openjdk6
scala:
- 2.11.2
env:
global:
- ARTIFACTS_AWS_REGION=us-east-1
- ARTIFACTS_S3_BUCKET=downloads.mesosphere.io
# IAM User: MarathonRelease
- secure: Ujj0GCEtGTs5jJneR41XFKgI9i9FXzkka6EsmI7BPOcJUfdp7NhGtxPsmMdheQZA725HQf5ES8ve6CzKuJbCdJ4IJx6HKJp1xgLDdGshcYW8kUha+sYeh9/vpagaZoNYJ9ArpdEHP7yJbKmga79pyoPAp3NbkY5QG8onaJCphZw=
- secure: MKUdKA6AbtETQvYkebXWbA+1zsQqG81d9bNuBlOc1vOt+whMAjEGdgZ/aqokXWJzNMFlaBdSeDfhS48+ibYUh2mW2N7XRwwTotVUcEAXdkoYYlfxfkTeHO2anadQVr/VYvLhDGSG+UCyEgTea1BmsqR2jutw/IIn2zS+mKALKt8=
script: sbt assembly
after_success:
# Pin to Faraday 0.8.9 due to:
# https://github.com/travis-ci/travis-artifacts/issues/23
- gem install --no-rdoc --no-ri --version 0.8.9 faraday
# Pin to travis-artifacts 0.2.2 to fix hostname mismatch errors with 0.3.0
- gem install --no-rdoc --no-ri --version 0.2.2 travis-artifacts
- bin/build-distribution
# Prepend a marathon version dir to the tarball elements (requires GNU tar)
- |
tar -czv -f "$ARTIFACT" --transform "s,,marathon-$PROJECT_VERSION/," \
Dockerfile README.md LICENSE bin examples docs \
target/scala-2.11/marathon-assembly-*.jar
- shasum --binary --algorithm 256 "$ARTIFACT" > "$ARTIFACT".sha256
- travis-artifacts upload --path "$ARTIFACT" --target-path marathon/"$TRAVIS_BRANCH"/
- travis-artifacts upload --path "$ARTIFACT".sha256 --target-path marathon/"$TRAVIS_BRANCH"/
notifications:
slack:
secure: apUObVUa/OhaTEvoYw3oM1ZTTT0LtYolofJYqnWiBOusc6qgMlK2rfk5kod7vDn33cSKwGhFcyVrrFCn2qxuvYUWCpK4Yo6Hj7KIjoqMi9yHLHXAAWIfAFNMlCdaUGjlHLWn757rBkbuQUDVH8HmB6Vc3J3sybTbiFmMDP1cEVo=