Permalink
Fetching contributors…
Cannot retrieve contributors at this time
73 lines (66 sloc) 2.08 KB
---
sudo: false
env:
global:
- secure: |-
IzTN2uuR4nsJ8+1IRmLXxn29+MK8PuKYgArbAU/aQPPm1vIUdMv0AYF/rq9N
YBdJJqfUHwOcGBFuwX1oKp4ykb6VTdYGOOCAN0j3IWtDXMkFM+qSTsLishyw
wSR11Z5SzTPxMGrY8cOupSH8mckmJvecomcYLctZdYwiP72+rSs=
- BAZEL_VERSION=0.10.0
cache:
apt: true
directories:
- $HOME/.cache/pip
addons:
apt:
packages:
- ant-optional
- texlive-latex-base
- texlive-latex-extra
- texlive-fonts-extra
- texlive-fonts-recommended
- texlive-lang-english
- texlive-lang-italian
notifications:
irc:
channels:
- irc.freenode.org#edumips64
skip_join: true
language: java
install:
- |
# Fail if any of the following commands fails.
set -e
# Parallelize downloads of dependencies.
sudo pip install Sphinx==1.1.3 &
PIP_PID=$!
# Install Bazel.
URL="https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh"
wget -O install.sh -nv "${URL}"
chmod +x install.sh
./install.sh --user
rm -f install.sh
# Wait for background processes to finish. All waits are necessary to make sure the exit status of each process is
# checked.
wait ${PIP_PID}
script:
- |
# Fail if any of the following commands fails.
set -e
# Bazel-based tests: unit tests and building the JAR files.
bazel test //src/test/java/org/edumips64/...:all
bazel build //src/main/java/org/edumips64:standalone-jar --workspace_status_command=utils/bazel-stamp.sh --stamp
bazel build //src/main/java/org/edumips64:slim-jar --workspace_status_command=utils/bazel-stamp.sh --stamp
bazel build //src/main/java/org/edumips64:cli-jar --workspace_status_command=utils/bazel-stamp.sh --stamp
# Build the PDF + HTML docs.
bazel build //docs/user/en:pdf
bazel build //docs/user/en:html
bazel build //docs/user/it:pdf
bazel build //docs/user/it:html
# Build web UI.
bazel build //src/main/java/org/edumips64:webclient
jdk:
- oraclejdk8
after_success:
- ./utils/update-gh-pages.sh
- bash <(curl -s https://codecov.io/bash)