forked from shumatech/BOSSA
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
74 lines (59 loc) · 1.71 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
# travis-ci integration for BOSSA
# Jacob Alexander 2018
sudo: required
# Language
language:
- cpp
# OS
os:
- linux
- osx
# Environment Variables
env:
global:
- VERSION=${TRAVIS_TAG}
# Package Setup
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install tree libwxgtk3.0-dev libreadline-dev -y; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install tree wxmac; fi
# System setup
install:
# Info about OS
- uname -a
# Directory tree to validate kll.git
- tree
# Compiler Version
- ${CC} --version
# Run build command
script:
- make -j && make install
# Setup Deploy
before_deploy:
- mkdir -p deploy
# Copy files for deployment
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cp bin/*.tgz deploy/.; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cp bin/*.dmg deploy/.; fi
- if [[ "$SCRIPT" == "ic_keyboards.bash" ]]; then for f in Keyboards/firmware/*.dfu.bin; do cp -f ${f} deploy/${TRAVIS_TAG}.$(basename ${f}); done; fi
- if [[ "$SCRIPT" == "all.bash" ]]; then for f in Bootloader/Builds/bootloader/*.bootloader.bin; do cp -f ${f} deploy/${TRAVIS_TAG}.$(basename ${f}); done; fi
# Show files being deployed
- tree deploy
# Deploy release
deploy:
name: ${TRAVIS_TAG}
tag_name: ${TRAVIS_TAG}
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
target_commitish: ${TRAVIS_COMMIT}
skip_cleanup: true
prerelease: true # XXX Set this to false to enable a stable release
file_glob: true
overwrite: true
file: deploy/*
on:
tags: true
# Post test script commands
after_script:
- bin/bossac --help
- tree