forked from jmcardon/tsec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (62 loc) · 1.83 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
71
72
73
sudo: required
language: scala
before_install:
- git clone git://github.com/jedisct1/libsodium.git
- cd libsodium
- git checkout 1.0.17
- ./autogen.sh
- ./configure && make check
- sudo make install
- sudo ldconfig
- cd ..
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends install swig
- export PATH=${PATH}:./vendor/bundle
scala_212: &scala_212 2.12.10
scala_213: &scala_213 2.13.1
before_cache:
- find $HOME/.sbt -name "*.lock" -type f -delete
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt
- $HOME/libsodium
jdk:
- openjdk8
install:
- rvm use 2.6.0 --install --fuzzy
- gem update --system
- gem install sass
- gem install jekyll -v 3.2.1
stages:
- name: test
- name: release
if: "((branch = master AND type = push) OR (tag IS present)) AND (NOT fork OR env(DEPLOY) = true)"
jobs:
include:
- &all_tests
env: TEST="all_tests"
stage: test
script:
- bash sodium_setup.sh
- sbt ++$TRAVIS_SCALA_VERSION clean
- sbt ++$TRAVIS_SCALA_VERSION test
scala: *scala_213
- <<: *all_tests
env: TEST="all_tests"
scala: *scala_212
- env: TEST="docs"
scala: *scala_212
script: sbt ++$TRAVIS_SCALA_VERSION tut && sbt ++$TRAVIS_SCALA_VERSION microsite/makeMicrosite
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep-history: true
local-dir: docs/target/site/
target-branch: gh-pages
on:
branch: master
- stage: release
# allow deploy organization to be overridden by environment variable:
script: sbt "set organization in ThisBuild := \"${DEPLOY_ORG:-io.github.jmcardon}\"; ci-release"