forked from sbt/sbt-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
70 lines (59 loc) · 2.03 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
This project does not use Travis anymore, see .github/workflows instead.
This file is kept only to remember how things were set up until all parts work again.
dist: xenial
jdk: openjdk8
language: scala
before_script:
- export PATH=$PATH:$HOME/bin/
script:
- sbt ";^^$SBT_CROSS_VERSION; update; compile; runScriptedTest; makeSite"
matrix:
include:
- env: SBT_CROSS_VERSION="1.1.6"
addons:
apt:
packages:
- nodejs
- python-sphinx
before_install:
- rvm install 2.4.4
install:
- gem install jekyll:3.8.4 nanoc:4.0.2 asciidoctor --no-document
- npm install -g [email protected]
- gitbook install 3.2.3
- |
mkdir $TRAVIS_BUILD_DIR/download && \
wget https://github.com/spf13/hugo/releases/download/v0.20.1/hugo_0.20.1_linux-64bit.tar.gz -O $TRAVIS_BUILD_DIR/download/hugo.tgz && \
tar xvf $TRAVIS_BUILD_DIR/download/hugo.tgz && \
mv $TRAVIS_BUILD_DIR/hugo_0.20.1_linux_amd64/hugo_0.20.1_linux_amd64 $HOME/bin/hugo && \
chmod +x $HOME/bin/hugo && \
rm -rf $TRAVIS_BUILD_DIR/download/
- git fetch --tags
before_cache:
- find $HOME/.sbt -name "*.lock" | xargs rm
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm
cache:
- apt
- directories:
- $HOME/.cache/coursier/v1
- $HOME/.ivy2/cache
- $HOME/.sbt
#travis-deploy
before_deploy:
# Record minimal build information via the Git user ident
- git config --global user.name "$USER"
- git config --global user.email "$TRAVIS_BUILD_NUMBER@$TRAVIS_COMMIT"
# Decrypt the secret deploy key using instructions from `travis encrypt-file`
- openssl aes-256-cbc -K $encrypted_3afbfedfa397_key -iv $encrypted_3afbfedfa397_iv -in project/travis-deploy-key.enc -out project/travis-deploy-key -d
- chmod 600 project/travis-deploy-key
# Start ssh-agent in the background and load the deploy key
- eval "$(ssh-agent -s)"
- ssh-add project/travis-deploy-key
deploy:
provider: script
script: sbt ghpagesPushSite
skip_cleanup: true
on:
tags: true
condition: $TRAVIS_PULL_REQUEST = false && $SBT_CROSS_VERSION = 1.1*
#travis-deploy