forked from zio/zio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
93 lines (83 loc) · 4.81 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
81
82
83
84
85
86
87
88
89
90
91
92
93
language: scala
sudo: false
# Main Scala version
scala:
- 2.12.8
- 2.11.12
jdk:
- openjdk8
before_install:
- "[ -z \"${encrypted_316f730cabee_iv}\" ] || openssl aes-256-cbc -K $encrypted_316f730cabee_key -iv $encrypted_316f730cabee_iv -in ./project/secrets.tar.xz.enc -out ./project/secrets.tar.xz -d"
- "[ -z \"${encrypted_316f730cabee_iv}\" ] || tar xfvJ project/secrets.tar.xz -C project"
- git fetch --tags
- export PATH=${PATH}:./vendor/bundle
install:
- rvm use 2.4.4 --install --fuzzy
- gem update --system
- gem install sass
- gem install jekyll -v 3.8.3
stages:
- name: test
- name: microsite
- name: release
if: (branch = master AND type = push) OR (tag IS present)
- name: publishMicrosite
if: tag IS present
jobs:
include:
- &lint
stage: test
name: "Lint"
script: sbt ++$TRAVIS_SCALA_VERSION scalafmtCheck test:scalafmtCheck scalafmtSbtCheck unusedCompileDependenciesTest
- &test
stage: test
name: "Test for Scala"
script: sbt ++$TRAVIS_SCALA_VERSION test package packageSrc publishLocal
- &scaladoc
stage: microsite
name: "Generate Scaladoc"
script: sbt ++$TRAVIS_SCALA_VERSION coreJVM/doc coreJS/doc interopCatsJVM/doc interopCatsJS/doc interopFutureJVM/doc interopFutureJS/doc interopScalaz7xJVM/doc interopScalaz7xJS/doc interopMonixJVM/doc interopMonixJS/doc interopJavaJVM/doc interopReactiveStreamsJVM/doc
- µ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
# - &releaseMonix
# stage: release
# name: "Release interop-monix"
# before_script: export PGP_SECRET="$(<./project/zecret)"
# script: sbt interopMonixJVM/publishSigned interopMonixJVM/sonatypeRelease interopMonixJS/publishSigned interopMonixJS/sonatypeRelease
- &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 "tim@nequissimus.com"
- git config --global user.name "Tim Steinbach"
- git config --global push.default simple
- sbt ++$TRAVIS_SCALA_VERSION microsite/publishMicrosite
# Cross-build
# - <<: *test
# scala: 2.13.0-M5
# name: "Test for 2.13"
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
env:
global:
- secure: 1KShGbny4TgD86w5/huvJEwcLYEQKjiUZeornS8W0rt8+j2emfFpb2VoyCfOQmXQrh0t5N96dS/hT0C+cDE0+/12rOE4zpm5RDDT7skY+ayTb3SKkIP9Qk5behvyIZi8xc5ny6z6UZoFBeTGJMZQgeuADhfcQHw68cZl4kEM9fU8L6Yc8jKUN6xTENnVpIDmM29Tbx/WyNA9EKw+1CL2fJVVLmvsQphieYoVjQfhZjl1+M289cZ+dX1UjsuvfrfwBTwFoabnZbQATZ9ALvwIfuOKYIdapS3rAayaKC7uihWZmCnNT4mmleob+zXdUjOWl/GXlHAgeCWU1GP7qZ65aLRx+URs/Vh+VAi5gXceF9Mka0VYMb/nm+noJIy9WLKa4kfnHruqR5NzxTq8D0xkgSa2v1tRCT7Vf98+RlzPTVF+rG/8lGa/nFoxqAkbB8ycTYSoAIswan4lx2PhD2GPWsCdiUBr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