2018-08-18 07:48:33 +08:00
|
|
|
---
|
2018-01-16 04:24:44 +08:00
|
|
|
# For Pull Requests, we build only the first three jobs: autotools on Linux,
|
|
|
|
# cmake on Linux, and cmake on Windows 32 bit.
|
|
|
|
#
|
2020-03-03 06:13:31 +08:00
|
|
|
# For branch builds and cron builds (once a day), we build all the jobs. This is
|
|
|
|
# achieved using the "if: type IN (push, api, cron)" fields in the jobs list.
|
2018-01-16 04:24:44 +08:00
|
|
|
|
2013-06-25 08:56:38 +08:00
|
|
|
language: c
|
2020-03-03 06:13:31 +08:00
|
|
|
os: linux
|
2016-07-13 20:12:11 +08:00
|
|
|
|
2020-03-03 06:13:31 +08:00
|
|
|
jobs:
|
2016-08-10 19:28:33 +08:00
|
|
|
include:
|
2018-08-18 07:48:33 +08:00
|
|
|
- stage: "Stage 1"
|
|
|
|
env: JOB=cmake-linux
|
|
|
|
compiler: gcc
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libconfig-dev # For tox-bootstrapd.
|
|
|
|
- libopus-dev # For toxav.
|
|
|
|
- libgtest-dev # For unit tests.
|
|
|
|
- libvpx-dev # For toxav.
|
2020-03-03 06:13:31 +08:00
|
|
|
- ninja-build
|
2018-08-27 23:51:41 +08:00
|
|
|
- pylint
|
2018-08-18 07:48:33 +08:00
|
|
|
install: .travis/$JOB install
|
|
|
|
script: .travis/$JOB script
|
|
|
|
after_script: .travis/upload-coverage
|
|
|
|
- stage: "Stage 1"
|
|
|
|
env: JOB=autotools-linux
|
|
|
|
compiler: clang
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libconfig-dev # For tox-bootstrapd.
|
|
|
|
- libopus-dev # For toxav.
|
|
|
|
- libvpx-dev # For toxav.
|
|
|
|
install: .travis/$JOB install
|
|
|
|
script: .travis/$JOB script
|
|
|
|
- stage: "Stage 1"
|
|
|
|
env: JOB=bazel-linux
|
|
|
|
compiler: clang
|
|
|
|
before_install:
|
|
|
|
# Clear bazel installation.
|
|
|
|
- rm -rf $HOME/.cache/bazel/_bazel_$USER/install
|
|
|
|
# Get toktok-stack, which contains the bazel workspace.
|
|
|
|
- cd ..
|
2020-03-01 00:01:08 +08:00
|
|
|
- git clone --depth=1 --branch=upgrade-bazel https://github.com/iphydf/toktok-stack
|
2018-08-18 07:48:33 +08:00
|
|
|
- rm -rf toktok-stack/c-toxcore
|
|
|
|
- mv c-toxcore toktok-stack/
|
|
|
|
- cd toktok-stack/c-toxcore
|
|
|
|
install: .travis/$JOB install
|
|
|
|
script: .travis/$JOB script
|
|
|
|
before_cache:
|
|
|
|
# Clear bazel installation.
|
|
|
|
- rm -rf $HOME/.cache/bazel/_bazel_$USER/install
|
|
|
|
- stage: "Stage 1"
|
|
|
|
if: type IN (push, api, cron)
|
|
|
|
env: JOB=cmake-win32
|
|
|
|
services: [docker]
|
|
|
|
install: .travis/$JOB install
|
|
|
|
script: .travis/$JOB script
|
|
|
|
- stage: "Stage 1"
|
|
|
|
if: type IN (push, api, cron)
|
|
|
|
env: JOB=cmake-win64
|
|
|
|
services: [docker]
|
|
|
|
install: .travis/$JOB install
|
|
|
|
script: .travis/$JOB script
|
2020-03-05 21:07:50 +08:00
|
|
|
# - stage: "Stage 1"
|
|
|
|
# if: type IN (push, api, cron)
|
|
|
|
# env: JOB=cmake-freebsd
|
|
|
|
# install: .travis/$JOB-stage1 install
|
|
|
|
# script: .travis/$JOB-stage1 script
|
2018-08-18 07:48:33 +08:00
|
|
|
- stage: "Stage 1"
|
|
|
|
if: type IN (push, api, cron)
|
|
|
|
env: JOB=cmake-osx
|
|
|
|
os: osx
|
|
|
|
install: .travis/$JOB install
|
|
|
|
script: .travis/$JOB script
|
|
|
|
- stage: "Stage 1"
|
|
|
|
if: type IN (push, api, cron)
|
|
|
|
env: JOB=tox-bootstrapd-docker
|
|
|
|
services: [docker]
|
|
|
|
script: .travis/$JOB
|
2020-03-05 21:07:50 +08:00
|
|
|
# - stage: "Stage 2"
|
|
|
|
# if: type IN (push, api, cron)
|
|
|
|
# env: JOB=cmake-freebsd
|
|
|
|
# install: .travis/$JOB-stage2 install
|
|
|
|
# script: .travis/$JOB-stage2 script
|
2016-09-22 21:42:29 +08:00
|
|
|
fast_finish: true
|
2013-06-25 08:56:38 +08:00
|
|
|
|
2016-07-06 16:47:13 +08:00
|
|
|
cache:
|
|
|
|
directories:
|
2018-08-18 07:48:33 +08:00
|
|
|
- $HOME/.cache/bazel
|
|
|
|
- $HOME/cache
|
|
|
|
- /opt/freebsd/cache
|
2016-07-06 16:47:13 +08:00
|
|
|
|
2016-07-13 03:32:35 +08:00
|
|
|
notifications:
|
2016-10-31 02:29:14 +08:00
|
|
|
irc:
|
|
|
|
channels:
|
2018-08-18 07:48:33 +08:00
|
|
|
- "chat.freenode.net#toktok-status"
|
2016-10-31 02:29:14 +08:00
|
|
|
template:
|
2018-08-18 07:48:33 +08:00
|
|
|
- "%{result} %{repository_name} %{build_url}"
|
|
|
|
- "#%{build_number} changes: %{compare_url}"
|