This repository has been archived by the owner on Nov 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
80 lines (69 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
language: scala
sudo: false
dist: xenial
scala:
- 2.12.8
jdk:
- openjdk8
before_install:
- export PATH=${PATH}:./vendor/bundle
- "[ -z \"${encrypted_1aa506f7c7ec_iv}\" ] || openssl aes-256-cbc -K $encrypted_1aa506f7c7ec_key -iv $encrypted_1aa506f7c7ec_iv -in ./project/secrets.tar.xz.enc -out ./project/secrets.tar.xz -d"
- "[ -z \"${encrypted_1aa506f7c7ec_iv}\" ] || tar xfvJ project/secrets.tar.xz -C project"
- git fetch --tags
env:
global:
- secure: MnKEc3GKeg/mx+gRA/lsVkcV/hSCls3/5ilq5pNq4JYd3JuEk8i3U56BkwNzFQowZztRKrS1KlgAI3nNWzpFTDPmCvC/feuKIOVHd3CRuezPQh5jitAAc/cLPALKakDuwMnU4bqdDWR59sJi4oYTt05n7lWnJDXPGo7rHraHiZ/bCPrJ5hvxxGPMAFCeQHFD0C1YEl8GTFtGBmGrSk6fU6sIpzp3a+T2/iXXBm6B8hqpwcUh1IENWW1Z40qqds7kwH2OY3FEIO9eDoB+BUdnDR6uTqgMwF6owWK2pQH/mEDIlEvB8TVVpSnAyp5wxzx9WNAxc0FRWkqtYXk9DiX4ScV0ACd4/thqbDM4QqCLkrxlLHWlRXfELdmhhHgkaz/bAnAPt7gR3B7ujrOFvBso24Zjf0jzmh0enUkYZzsV3wRq5D8Gpy9JEeTtKUCQQnLScb5M0bLCvmea3i3sNDF+EvuWvoo/3SdfES4qn0KH32JIz6Jb/80RRMx8cpBpxWhmoKd1QUCNsz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+1jBDyEuov6f2NaZffBhDtJwWI100unTT9bUcdYoKtmJ0+zGx5E8dahUemVzwiXUsA0FIkDVgSkIwgQXxJEewzxT66nd4fF/n5hR1RO0xuP75m2p/iLVpbwP5MaIqzGsy6zGaN5CoqjqFRYBNBx2REq9vEAJvL+EDZGb4FeCgrFUhN9avCBvCKVSsfsu5j6FNtSH4sAPi5JfZH7O4PLpBQF5mSPwJ5BsGZZvwsfdeUNzE8o9DjyJD4izjOLT205M2Uvz4+FIXLIgbdMMG6KQ+bXSSQM4nRBvBn9JBtwcY4IPwVS0RaR1/8kF1roJG2/N4EIGmB5u2OFMSsMZMKgCzirMu5YXv4Ahew7x5iT895X1bU+YVjxQJdHZXZO2i+5v5j9sVpdZ10DgtQLu5WCqfCHZoAxRycB5olNIZAsbXQuEHn9Ih2rsgEHHNZabRZ5DTDIXM="
stages:
- name: build
#- name: microsite
- name: release
if: (branch = master AND type = push) OR (tag IS present)
#- name: publishMicrosite
# if: tag IS present
jobs:
include:
- &lint
stage: build
name: "Lint"
script: "sbt ++${TRAVIS_SCALA_VERSION}! scalafmtCheck test:scalafmtCheck scalafmtSbtCheck"
- &build
stage: build
name: "Build"
script: "sbt ++${TRAVIS_SCALA_VERSION}! coverage test coverageReport"
after_success: "bash <(curl -s https://codecov.io/bash)"
# - µsite
# stage: microsite
# name: "Generate microsite"
# script: "sbt ++${TRAVIS_SCALA_VERSION}! microsite/makeMicrosite"
- &release
stage: release
name: "Release artifacts"
before_script: export PGP_SECRET="$(<./project/zecret)"
script: "sbt ci-release || sbt sonatypeReleaseAll"
# - &publishSite
# stage: publishMicrosite
# name: "Publish microsite"
# before_script:
# - cp ./project/travis-deploy-key ~/.ssh/id_ed25519
# - chmod 600 ~/.ssh/id_ed25519
# script:
# - git config --global user.email "[email protected]"
# - git config --global user.name "Tim Steinbach"
# - git config --global push.default simple
# - sbt ++${TRAVIS_SCALA_VERSION}! microsite/publishMicrosite
# Cross-build
- <<: *build
scala: 2.12.8
name: "Build with 2.12.8"
cache:
directories:
- $HOME/.sbt/1.0/dependency
- $HOME/.sbt/boot/scala*
- $HOME/.sbt/launchers
- $HOME/.rvm
before_cache:
- find $HOME/.sbt -name "*.lock" -type f -delete
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete
- rm -rf $HOME/.ivy2/local