forked from MAIF/izanami
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (59 loc) · 1.69 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
sudo: false
matrix:
include:
- os: linux
language: scala
scala: 2.12.7
jdk: oraclejdk8
services:
- docker
before_install:
- docker login -u ${DOCKER_USER} -p ${DOCKER_PASSWORD}
- sudo apt-get install wget curl
- wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh |
bash
- export NVM_DIR="/home/travis/.nvm"
- sh $NVM_DIR/nvm.sh
- nvm install 8.6.0
- nvm use 8.6.0
- curl -o- -L https://yarnpkg.com/install.sh | bash
- wget --quiet https://sh.rustup.rs -O rustupinstall.sh
- sh ./rustupinstall.sh -y
- export PATH=$PATH:$HOME/.cargo/bin
- rustup update
- rustup default stable
- docker-compose -f docker-compose.test.yml rm
- docker-compose -f docker-compose.test.yml up -d
script:
- sh ./scripts/build-javascript.sh
- sh ./scripts/sbt-build.sh
- sh ./scripts/publish-npm.sh
- sh ./scripts/build-rust.sh
after_failure:
- docker-compose logs cassandra
- os: osx
osx_image: xcode8.3
before_install:
- wget --quiet https://sh.rustup.rs -O rustupinstall.sh
- sh ./rustupinstall.sh -y
- export PATH=$PATH:$HOME/.cargo/bin
- rustup update
- rustup default stable
script:
- sh ./scripts/build-rust.sh
env:
global:
- PACKAGE_VERSION=0.0.1
before_cache:
- find $HOME/.ivy2 -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
cache:
directories:
- "$HOME/.ivy2/cache"
- "$HOME/.sbt/boot"
- "$HOME/.sbt"
- "$HOME/.coursier"
- "$HOME/.nvm"
- "$HOME/.yarn-cache"
- "$HOME/.rustup"
- "$HOME/.cargo"