forked from lnls-dig/openMMC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (60 loc) · 1.45 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
dist: bionic
os: linux
notifications:
email: false
language: c
# blocklist
branches:
except:
- gh-pages
env:
global:
- BUILD_DIR=build
- RELEASE_DIR=release
jobs:
- BUILD_ARTIFACT='binary' BUILD_TYPE='Release' BOARD='afc-bpm' VERSION='3.0' RTM=''
- BUILD_ARTIFACT='binary' BUILD_TYPE='Release' BOARD='afc-bpm' VERSION='3.1' RTM=''
- BUILD_ARTIFACT='binary' BUILD_TYPE='Release' BOARD='afc-timing' VERSION='' RTM='rtm-8sfp'
jobs:
include:
- env: BUILD_ARTIFACT='all_binaries' DEPLOY='all_binaries'
- env: BUILD_ARTIFACT='docs' DEPLOY='docs'
# Install dependencies
addons:
apt:
packages:
- gcc-arm-none-eabi
- libnewlib-arm-none-eabi
- cmake
- doxygen
- doxygen-doc
- doxygen-latex
- doxygen-gui
- graphviz
# Build and check this project
script:
- ./ci_build.sh
# Generate documentation
after_success:
- ./ci_gen_doxy.sh
# Prepare for deploy
before_deploy:
- . ./ci_deploy.sh
deploy:
- provider: releases
token: $GH_RELEASES_TOKEN
file_glob: true
file: ${OPENMMC_DEPLOYMENT}
skip_cleanup: true
on:
all_branches: true
tags: true
condition: $DEPLOY = "all_binaries"
- provider: pages
skip_cleanup: true
local_dir: docs/html
token: $GH_TOKEN # Set in the settings page of your repository, as a secure variable
keep_history: false
on:
all_branches: true
condition: $DEPLOY = "docs"