Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
78 lines (78 sloc) 2.2 KB
language: scala
jdk: openjdk8
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
services:
- docker
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: (branch = master AND type = push) OR 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:
- name: "Validate examples"
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.12.11
- scala: 2.12.12
- scala: 2.12.12
jdk: openjdk11
- scala: 2.13.2
- scala: 2.13.3
- 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"
addons:
apt:
packages:
- docker-ce
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
You can’t perform that action at this time.