forked from pureconfig/pureconfig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
69 lines (62 loc) · 1.74 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
sudo: false
language: scala
scala:
- 2.11.12
- 2.12.8
- 2.13.0
jdk:
- openjdk8
env:
# marker environment variable to make the build matrix more readable in the UI
- JOB=test
script:
- >
sbt coverage
"++$TRAVIS_SCALA_VERSION test"
"++$TRAVIS_SCALA_VERSION tut"
"++$TRAVIS_SCALA_VERSION doc"
"++$TRAVIS_SCALA_VERSION publishLocal"
# Compile example project
- (cd example; sbt ++$TRAVIS_SCALA_VERSION test)
# check if there are no changes after `tut` runs
- if [[ $TRAVIS_SCALA_VERSION =~ ^2\.12.* ]]; then
git diff --exit-code;
fi
after_success:
- sbt ++$TRAVIS_SCALA_VERSION "++$TRAVIS_SCALA_VERSION coverageReport" coverageAggregate coveralls
jobs:
include:
- env: JOB=build_website
scala: 2.12.8
addons:
apt:
packages:
- libcurl4-openssl-dev # required to avoid SSL errors
before_install:
- export PATH=${PATH}:./vendor/bundle
- export NOKOGIRI_USE_SYSTEM_LIBRARIES=true
install:
- rvm use 2.4 --install --fuzzy
- gem update --system
- gem install sass jekyll:3.2.1 html-proofer:3.9.3
script:
- sbt makeMicrosite
- htmlproofer
--allow-hash-href
--url-swap "https\://github\.com/pureconfig/pureconfig/tree/master:file\://$(pwd)"
--url-ignore "/search.maven.org/"
docs/target/site
after_success: ignore
- env: JOB=diff_website
if: type = pull_request AND branch = master
scala: 2.12.8
install:
- rvm use 2.4 --install --fuzzy
- gem update --system
- gem install sass jekyll:3.2.1
script:
- ./scripts/diff_website.sh
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt