forked from proteinevolution/Toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 1.05 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
language: scala
dist: trusty
sudo: required
scala:
- 2.12.6
jdk:
- openjdk8
services:
- mongodb
env:
matrix: SBT_BIN=sbt -Dsbt.override.build.repos=true -Dsbt.repository.config=/$HOME/.sbt/repositories -Dsbt.boot.directory=sbt-cache/boot -Dsbt.ivy.home=sbt-cache/ivy2
before_cache:
- find $HOME/.ivy2/cache -name 'ivydata-*.properties' -delete
- find $HOME/.sbt -name '*.lock' -delete
cache:
directories:
- "$HOME/.ivy2/cache"
- $HOME/.sbt
before_install:
- chmod +x bin/validate-code
- git clone https://github.com/AlDanial/cloc.git $HOME/cloc
install:
- git submodule update --init --recursive
- git clone https://github.com/felixgabler/maxmind-geoip2-scala.git $HOME/pizza
- cd $HOME/pizza; sbt publishLocal; cd -
- git clone https://github.com/zy4/scalajs-mithril.git $HOME/scalajs-mithril
- cd $HOME/scalajs-mithril; sbt publishLocal; cd -
- . $HOME/.nvm/nvm.sh
- nvm install stable
- nvm use stable
- npm install
- npm install jsdom
script:
- bin/validate-code
- sbt test:compile test stage
- $HOME/cloc/cloc $(git ls-files)