forked from almond-sh/almond
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (72 loc) · 2.15 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
language: scala
jdk: oraclejdk8
script: ./.travis.sh
cache:
directories:
- $HOME/.cache
- $HOME/.ivy2/cache
- $HOME/.sbt
git:
depth: false
before_install:
- source scripts/website/setup-build-tools.sh
sudo: required
stages:
- name: test
- name: release
if: (branch = master AND type = push) OR (tag IS present)
- name: upload-launcher
if: tag IS present
- name: update-docker-images # after upload-launcher, that waited for the sync to Maven Central
if: tag IS present
- name: update-versioned-docs
if: tag IS present
- name: update-website
if: (branch = master AND type = push) OR (tag IS present)
jobs:
include:
- env: VALIDATE_EXAMPLES=1 # unused from the script, just to know what the job does from the Travis UI
addons:
apt:
sources:
- deadsnakes
packages:
- python3.6
install:
- curl https://bootstrap.pypa.io/get-pip.py | sudo -H python3.6
- python3.6 -V
- pip3 -V
- sudo pip3 install -r examples/requirements.txt
script: scripts/setup-and-validate-examples.sh
- scala: 2.11.12
- scala: 2.12.6
- scala: 2.12.7
- scala: 2.12.8
- scala: 2.12.8
jdk: openjdk11
- name: "Website"
script: amm scripts/site.sc --publishLocal true
- stage: release
script: sbt ci-release
- stage: upload-launcher
name: "Upload launcher"
script: scripts/upload-launcher.sh
- stage: update-docker-images
name: "Update docker images"
script: scripts/update-docker-images.sh
- stage: update-versioned-docs
env: WEBSITE_DIR=docs/website VERSIONED_DOCS_REPO=almond-sh/versioned-docs
script:
- amm scripts/site.sc --publishLocal true --npmInstall true --yarnRunBuild true
- scripts/website/versioned-docs.sh --update
- stage: update-website
env: WEBSITE_DIR=docs/website REPO=almond-sh/almond VERSIONED_DOCS_REPO=almond-sh/versioned-docs
name: "Push website"
script:
- scripts/website/versioned-docs.sh
- amm scripts/site.sc --publishLocal true --npmInstall true --yarnRunBuild true --relativize true
- scripts/website/push-website.sh
branches:
only:
- master
- /^v\d+\.\d+.*$/ # tagged versions