mirror of https://github.com/sbt/sbt.git
Merge pull request #905 from coursier/topic/stop-publishing-snapshots
Stop publishing snapshots from CI
This commit is contained in:
commit
c35ec74e8f
|
|
@ -11,7 +11,7 @@ addons:
|
||||||
update: true
|
update: true
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- env: SCALA_VERSION=2.12 NATIVE=1 PUBLISH=1
|
- env: SCALA_VERSION=2.12 NATIVE=1
|
||||||
os: linux
|
os: linux
|
||||||
jdk: oraclejdk8
|
jdk: oraclejdk8
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
@ -19,13 +19,13 @@ matrix:
|
||||||
- curl https://raw.githubusercontent.com/scala-native/scala-native/master/scripts/travis_setup.sh | bash -x
|
- curl https://raw.githubusercontent.com/scala-native/scala-native/master/scripts/travis_setup.sh | bash -x
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
- env: SCALA_VERSION=2.11 PUBLISH=1
|
- env: SCALA_VERSION=2.11
|
||||||
os: linux
|
os: linux
|
||||||
jdk: oraclejdk8
|
jdk: oraclejdk8
|
||||||
sudo: required
|
sudo: required
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
- env: SCALA_VERSION=2.10 PUBLISH=1
|
- env: SCALA_VERSION=2.10
|
||||||
os: linux
|
os: linux
|
||||||
jdk: oraclejdk8
|
jdk: oraclejdk8
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [ "$1" = "clone" ]; then
|
|
||||||
git clone "https://${GH_TOKEN}@github.com/coursier/coursier.git" -b gh-pages coursier-gh-pages >/dev/null 2>&1
|
|
||||||
else
|
|
||||||
git push origin gh-pages >/dev/null 2>&1
|
|
||||||
fi
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
set -ev
|
|
||||||
|
|
||||||
SCALA_VERSION="$1"
|
|
||||||
shift
|
|
||||||
|
|
||||||
sbt ++${SCALA_VERSION} web/fastOptJS
|
|
||||||
|
|
||||||
HELPER="$(readlink -f "$(dirname "$0")/push-gh-pages-helper.sh")"
|
|
||||||
|
|
||||||
"$HELPER" clone
|
|
||||||
cd coursier-gh-pages
|
|
||||||
|
|
||||||
[ ! -e staging ] || git rm -r staging
|
|
||||||
|
|
||||||
mkdir staging
|
|
||||||
DIR="$(for i in "../web/target/scala-"*; do echo "$i"; done)"
|
|
||||||
cp "$DIR/web-"*.js* staging
|
|
||||||
cp "$DIR/classes/index"*.html staging
|
|
||||||
cp -R "$DIR/classes/css" staging
|
|
||||||
|
|
||||||
for i in staging/*.html; do
|
|
||||||
mv "$i" "$i.0"
|
|
||||||
sed "s/src=\"\.\.\/web-/src=\"web-/g" < "$i.0" > "$i"
|
|
||||||
rm -f "$i.0"
|
|
||||||
done
|
|
||||||
|
|
||||||
git config user.name "Travis-CI"
|
|
||||||
git config user.email "invalid@travis-ci.com"
|
|
||||||
git add staging
|
|
||||||
git commit -m "Deploy to gh-pages"
|
|
||||||
"$HELPER"
|
|
||||||
|
|
@ -95,10 +95,6 @@ checkBinaryCompatibility() {
|
||||||
sbt scalaFromEnv coreJVM/mimaReportBinaryIssues cacheJVM/mimaReportBinaryIssues
|
sbt scalaFromEnv coreJVM/mimaReportBinaryIssues cacheJVM/mimaReportBinaryIssues
|
||||||
}
|
}
|
||||||
|
|
||||||
publish() {
|
|
||||||
sbt scalaFromEnv publish
|
|
||||||
}
|
|
||||||
|
|
||||||
testBootstrap() {
|
testBootstrap() {
|
||||||
if [ "$SCALA_VERSION" = 2.12 ]; then
|
if [ "$SCALA_VERSION" = 2.12 ]; then
|
||||||
sbt scalaFromEnv "project cli" pack
|
sbt scalaFromEnv "project cli" pack
|
||||||
|
|
@ -221,17 +217,3 @@ else
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
PULL_REQUEST="${PULL_REQUEST:-${TRAVIS_PULL_REQUEST:-false}}"
|
|
||||||
BRANCH="${BRANCH:-${TRAVIS_BRANCH:-$(git rev-parse --abbrev-ref HEAD)}}"
|
|
||||||
PUBLISH="${PUBLISH:-0}"
|
|
||||||
|
|
||||||
if [ "$PUBLISH" = 1 -a "$PULL_REQUEST" = false -a "$BRANCH" = master ]; then
|
|
||||||
publish
|
|
||||||
|
|
||||||
if [ "$SCALA_VERSION" = "2.11" ] && isScalaJs; then
|
|
||||||
#"$(dirname "$0")/push-gh-pages.sh" "$SCALA_VERSION"
|
|
||||||
:
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue