-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
69 lines (68 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
# Not using Travis anymore but keeping this for now.
dist: bionic
language: c
sudo: false
branches:
only:
- master
- /^\d+\.\d+(\.\d+)?(-\S*)?$/
addons:
apt:
update: true
packages:
- texinfo
- openjdk-8-jdk-headless
- dos2unix
- g++
cache:
directories:
- build
- toolchain/work
jobs:
include:
- stage: clean
script:
- make clean
- stage: Setup toolchain
script:
- make toolchain_clean
- cd toolchain && make setup
- stage: Build bintutils
script:
- cd toolchain && make build-binutils
- stage: Build GCC pass 1
script:
- cd toolchain && make build-gcc-1
- stage: Build newlib
script:
- cd toolchain && make build-newlib
- stage: Build GCC pass 2
script:
- cd toolchain && make build-gcc-2
- stage: Build ldscripts
script:
- cd toolchain && make build-ldscripts
- stage: build tools
script:
- make tools_clean tools_build
- stage: build sgdk
script:
- export GENDEV=`pwd`/build
- make sgdk_clean sgdk_build
- make sgdk_samples
- stage: release to github
if: tag IS present
script:
- echo "Deploying to github..."
- VER=$TRAVIS_TAG make release
deploy:
provider: releases
api_key: "$GITHUB_OAUTH_TOKEN"
skip_cleanup: true
file_glob: true
file:
- dist/gendev_*.txz
- dist/gendev_*_all.deb
on:
tags: true
repo: kubilus1/gendev