forked from chipsalliance/verible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
86 lines (75 loc) · 1.82 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# For deploy to work, you must https://travis-ci.org/$USER/verible/settings and
# add the following environment values;
# OCTOKIT_ACCESS_TOKEN - Personal access token from https://github.com/settings/tokens
# OCTOKIT_LOGIN - Your Github username
# OCTOKIT_PASSWORD - Same as OCTOKIT_ACCESS_TOKEN above
language: cpp
# Don't build auto-generated tags
if: NOT tag =~ /v[0-9.]*-.*/
services:
- docker
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-9
- gcc-9
- pandoc
- python-gflags
git:
depth: false
jobs:
include:
- stage: Check
name: "Compile & Test"
env:
- MODE=compile-n-test
deploy:
- provider: pages
cleanup: true
keep_history: true
github_token: $OCTOKIT_ACCESS_TOKEN
local_dir: /tmp/pages
on:
branch: master
# Build and release binaries
- stage: Deploy
name: "Ubuntu Trusty (14.04 LTS)"
env:
- MODE=bin OS=ubuntu OS_VERSION=trusty
- name: "Ubuntu Xenial (16.04 LTS)"
env:
- MODE=bin OS=ubuntu OS_VERSION=xenial
- name: "Ubuntu Bionic (18.04 LTS)"
env:
- MODE=bin OS=ubuntu OS_VERSION=bionic
- name: "Ubuntu Eoan (19.10 latest)"
env:
- MODE=bin OS=ubuntu OS_VERSION=eoan
- name: "Centos 6"
env:
- MODE=bin OS=centos OS_VERSION=6
- name: "Centos 7"
env:
- MODE=bin OS=centos OS_VERSION=7
- name: "Centos 8"
env:
- MODE=bin OS=centos OS_VERSION=8
before_install:
- ./.github/travis/install.sh
script:
- ./.github/travis/script.sh
after_success:
- ./.github/travis/success.sh
deploy:
- provider: releases
file_glob: true
username: $OCTOKIT_LOGIN
password: $OCTOKIT_PASSWORD
file:
- /tmp/releases/verible-*.tar.gz
overwrite: true
cleanup: true
on:
condition: $MODE = "bin"