forked from scanamo/scanamo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (49 loc) · 1.3 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
language: scala
scala:
- 2.12.8
jdk:
- openjdk8
sudo: false
install:
- rvm use 2.3.8 --install --fuzzy
- gem update --system
- gem install sass
- gem install jekyll -v 3.2.1
cache:
directories:
- $HOME/.sbt
- $HOME/.ivy2
before_cache:
- find $HOME/.sbt -name "*.lock" -type f -delete -print
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete -print
before_install:
- git fetch --tags
- export PATH=${PATH}:./vendor/bundle
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 ++$TRAVIS_SCALA_VERSION scalafmtCheck test:scalafmtCheck scalafmtSbtCheck
- &test
stage: test
name: "Test for 2.12"
script: sbt ++$TRAVIS_SCALA_VERSION coverage startDynamodbLocal test dynamodbLocalTestCleanup stopDynamodbLocal
after_success: bash <(curl -s https://codecov.io/bash)
- µsite
stage: microsite
name: "Generate microsite"
script: sbt ++$TRAVIS_SCALA_VERSION startDynamodbLocal makeMicrosite stopDynamodbLocal
- &release
stage: release
name: "Release artifacts"
script: sbt ci-release
# Cross-build
- <<: *test
scala: 2.11.12
name: "Test for 2.11"