forked from vinyldns/vinyldns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (36 loc) · 1.09 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
language: scala
scala:
- 2.12.7
python:
- 2.7
sudo: false
jdk:
- oraclejdk8
- openjdk11
services:
- docker
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt
timeout: 900
install:
- rvm use 2.2.8 --install --fuzzy
- gem update --system
- gem install sass jekyll:3.2.1
before_cache:
# Cleanup the cached directories to avoid unnecessary cache updates (https://www.scala-sbt.org/1.0/docs/Travis-CI-with-sbt.html)
- sudo chown -R travis:travis $HOME/.sbt
- sudo chown -R travis:travis $HOME/.ivy2/cache
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
jobs:
include:
- name: "Validate and verify modules"
script: sbt ++$TRAVIS_SCALA_VERSION ";validate; verify" && bash <(curl -s https://codecov.io/bash)
- name: "Run API and portal functional tests"
script: ./bin/func-test-portal.sh && ./bin/func-test-api-travis.sh
- stage: Deploy
if: branch = master AND type = push
name: "Deploy doc site"
script: sbt ";project docs; publishMicrosite";