forked from scanamo/scanamo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (52 loc) · 1.44 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
version: ~> 1.0
language: scala
os: linux
scala:
- 2.12.12
jdk:
- openjdk8
env:
- SBTOPTS="-Dsbt.coursier.home=$HOME/.coursier"
cache:
directories:
- $HOME/.sbt/launchers
- $HOME/.coursier
- $HOME/.rvm
before_install:
- git fetch --tags
- export PATH=${PATH}:./vendor/bundle
after_success:
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then bash scripts/publishMicrosite.sh; fi
stages:
- name: test
- name: microsite
- name: release
if: (branch = master AND type = push) OR (tag IS present)
jobs:
include:
- &lint
stage: test
name: "Lint"
script: sbt $SBTOPTS ++$TRAVIS_SCALA_VERSION scalafmtCheck test:scalafmtCheck scalafmtSbtCheck
- &test
stage: test
name: "Tests for 2.12"
script: sbt $SBTOPTS ++$TRAVIS_SCALA_VERSION coverage startDynamodbLocal test dynamodbLocalTestCleanup stopDynamodbLocal
after_success: bash <(curl -s https://codecov.io/bash)
- µsite
stage: microsite
name: "Generate microsite"
install:
- rvm use 2.6.0 --install --fuzzy
- gem update --system
- gem install sass
- gem install jekyll -v 4.0.0
script: sbt $SBTOPTS ++$TRAVIS_SCALA_VERSION startDynamodbLocal makeMicrosite stopDynamodbLocal
- &release
stage: release
name: "Release artifacts"
script: sbt $SBTOPTS ci-release
# Cross-build
- <<: *test
scala: 2.13.3
name: "Tests for 2.13"