forked from coursier/coursier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (39 loc) · 1.12 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
language: java
os: linux
jdk: oraclejdk8
script: scripts/travis.sh
addons:
apt:
update: true
stages:
- name: test
- name: release
if: (branch = master AND type = push) OR (tag IS present)
jobs:
include:
- env: SCALA_VERSION=2.12 NATIVE=1
sudo: required
before_install: curl https://raw.githubusercontent.com/scala-native/scala-native/master/scripts/travis_setup.sh | bash -x
services: docker
- env: SCALA_VERSION=2.11
sudo: required
services: docker
- env: SCALA_VERSION=2.12 SCALA_JS=1
- env: SCALA_VERSION=2.11 SCALA_JS=1
- env: PANTS=1 # unused in the script, just to tag the job on the Travis CI UI
# Sanity check for Pants build path.
script: cd modules && ./pants run cli/src/main/scala-2.12:coursier-cli -- fetch --help
- env: WEBSITE=1 # unused from the script, just to know what the job does from the Travis UI
script: scripts/update-website.sh
- stage: release
env: PUSH_WEBSITE=1
script: scripts/update-website.sh
branches:
only:
- master
cache:
directories:
- $HOME/.m2
- $HOME/.ivy2/cache
- $HOME/.sbt
- $HOME/.cache