mirror of https://github.com/sbt/sbt.git
36 lines
903 B
YAML
36 lines
903 B
YAML
language: java
|
|
os: linux
|
|
jdk: openjdk8
|
|
git:
|
|
depth: false # https://stackoverflow.com/a/51727114/3714539
|
|
before_install:
|
|
- mkdir .bin
|
|
- curl -Lo .bin/sbt https://raw.githubusercontent.com/coursier/sbt-extras/77c93346a2b52cf35cc72382125cfdbb25a00197/sbt
|
|
- chmod +x .bin/sbt
|
|
- export PATH="$(pwd)/.bin:$PATH"
|
|
- export TRAVIS_SCALA_VERSION=2.12.8
|
|
script: scripts/travis.sh
|
|
stages:
|
|
- name: test
|
|
- name: release
|
|
if: (branch = master AND type = push) OR (tag IS present)
|
|
jobs:
|
|
include:
|
|
- env: SBT_COURSIER=1 TEST_GROUP=1
|
|
- env: SBT_COURSIER=1 TEST_GROUP=2
|
|
- env: SBT_SHADING=1
|
|
- env: SBT_PGP_COURSIER=1
|
|
- env: LM_COURSIER=1 TEST_GROUP=1
|
|
- env: LM_COURSIER=1 TEST_GROUP=2
|
|
- stage: release
|
|
script: sbt ci-release
|
|
branches:
|
|
only:
|
|
- master
|
|
- /^v\d+\.\d+.*$/ # tagged versions
|
|
cache:
|
|
directories:
|
|
- $HOME/.ivy2/cache
|
|
- $HOME/.sbt
|
|
- $HOME/.cache
|