2015-01-02 08:13:51 -08:00
|
|
|
language: c
|
2016-10-09 09:18:27 +01:00
|
|
|
os:
|
|
|
|
|
- linux
|
2018-03-29 14:26:45 +01:00
|
|
|
- osx
|
2015-01-02 08:13:51 -08:00
|
|
|
compiler:
|
|
|
|
|
- gcc
|
|
|
|
|
- clang
|
2016-10-09 09:18:27 +01:00
|
|
|
env:
|
2018-10-06 09:02:10 +01:00
|
|
|
- WREN_OPTIONS="" CI_ARCHS="ci_64"
|
2016-10-09 09:18:27 +01:00
|
|
|
- WREN_OPTIONS="-DWREN_NAN_TAGGING=0" CI_ARCHS="ci_64"
|
2018-03-29 14:26:45 +01:00
|
|
|
|
2018-07-14 10:35:45 -07:00
|
|
|
# Automatically build and deploy docs.
|
|
|
|
|
jobs:
|
|
|
|
|
include:
|
|
|
|
|
- stage: deploy
|
|
|
|
|
script: bash util/deploy_docs_from_travis.sh
|
|
|
|
|
# Only deploy commits that land on master.
|
|
|
|
|
if: branch = master and type = push
|
2018-03-29 14:26:45 +01:00
|
|
|
|
2015-07-10 10:35:25 -07:00
|
|
|
# Travis VMs are 64-bit but we compile both for 32 and 64 bit. To enable the
|
|
|
|
|
# 32-bit builds to work, we need gcc-multilib.
|
|
|
|
|
addons:
|
|
|
|
|
apt:
|
|
|
|
|
packages:
|
|
|
|
|
- gcc-multilib
|
2015-08-28 20:25:26 -07:00
|
|
|
- g++-multilib
|
2018-07-14 11:57:11 -07:00
|
|
|
# These are needed for building and deploying the docs.
|
2018-03-29 14:26:45 +01:00
|
|
|
- python3-markdown
|
2018-07-14 12:12:07 -07:00
|
|
|
- python3-pygments
|
2018-07-14 11:57:11 -07:00
|
|
|
- python3-setuptools
|
2018-03-29 14:26:45 +01:00
|
|
|
- ruby-sass
|
|
|
|
|
|
2018-07-14 11:05:41 -07:00
|
|
|
# Can't do container-based builds for now because installing the custom
|
|
|
|
|
# Pygments lexer to generate the docs requires sudo. :( If that changes,
|
|
|
|
|
# uncomment the next line and delete the "sudo" and "dist" lines.
|
|
|
|
|
# sudo: false # Enable container-based builds.
|
|
|
|
|
sudo: required
|
|
|
|
|
dist: trusty
|
|
|
|
|
|
2016-10-09 09:18:27 +01:00
|
|
|
script: make WREN_CFLAGS=${WREN_OPTIONS} ${CI_ARCHS}
|