Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 16bf181

Browse files
committed
Fix multiple issues with travis deploy
1 parent 426fc5f commit 16bf181

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.scripts/update-docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ git config --global user.email "[email protected]"
99
git config --global user.name "Travis CI"
1010

1111
echo "Cloning docs repo..."
12-
git clone https://${GH_TOKEN}@github.com/codeoverflow-org/chatoverflow-gh-pages docs
12+
git clone https://${GH_TOKEN}@github.com/codeoverflow-org/chatoverflow-gh-pages --branch master --single-branch --depth 1 docs
1313

1414
echo "Copying docs..."
1515
cp -fR target/scala-$SCALA_MAJOR/api chatoverflow

.travis.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,20 @@ branches:
44
only:
55
- master
66
language: scala
7+
jdk: openjdk8
78
scala:
89
- 2.12.5
910
cache:
1011
directories:
1112
- $HOME/.ivy2/cache
1213
- $HOME/.sbt
13-
before_cache:
14-
- rm -fv $HOME/.ivy2/.sbt.ivy.lock
15-
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
16-
- find $HOME/.sbt -name "*.lock" -print -delete
14+
before_install:
15+
- git clone https://github.com/codeoverflow-org/chatoverflow-api --branch master --single-branch --depth 1 api
1716
script:
1817
- sbt ++$TRAVIS_SCALA_VERSION -Dfile.encoding=UTF8 doc
1918
- chmod +x .scripts/update-docs.sh
20-
- bash .scripts/update-docs.sh
19+
- bash .scripts/update-docs.sh
20+
before_cache:
21+
- rm -fv $HOME/.ivy2/.sbt.ivy.lock
22+
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
23+
- find $HOME/.sbt -name "*.lock" -print -delete

0 commit comments

Comments
 (0)