-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
50 lines (42 loc) · 1.26 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
language: scala
sudo: false
addons:
apt:
sources: ['ubuntu-toolchain-r-test','llvm-toolchain-precise-3.5']
packages: ['clang-3.5', 'p7zip-full']
cache:
directories:
- $HOME/cache
env:
matrix:
- TARGET=arm-linux-androideabi
- TARGET=i686-linux-android
- TARGET=host TEST_GOAL=coverage
- TARGET=host TEST_GOAL=performance
matrix:
fast_finish: true
allow_failures:
- env: TARGET=host TEST_GOAL=performance
install:
# Move files from cache directory.
- rm -rf $HOME/.ivy2 $HOME/.sbt $HOME/.usr
- mkdir -p $HOME/cache/ivy2 $HOME/cache/sbt $HOME/cache/usr
- ln -s $HOME/cache/ivy2 $HOME/.ivy2
- ln -s $HOME/cache/sbt $HOME/.sbt
- ln -s $HOME/cache/usr $HOME/.usr
# Set-up step.
- make setup-$TARGET TARGET=$TARGET
script:
# Build/install step.
- make install GOAL=$TEST_GOAL
before_cache:
- ln -s $PWD/.git projects/tox4j/
- ln -s $PWD/projects/tox4j/src/main/java/* $PWD/projects/tox4j/
- if [ "$TEST_GOAL" = "coverage" ]; then cd projects/tox4j && sbt coveralls; fi
# Clean up cache.
- find $HOME/cache/ivy2 -type f -name "ivydata-*.properties" -delete
- find $HOME/cache/ivy2 -type d -name "im.tox" -exec rm -rf {} ";"
- find $HOME/cache/sbt/boot -name "sbt.*.lock" -delete
branches:
only:
- master