-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (36 loc) · 1.67 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
language: shell
os: linux
dist: bionic
env:
jobs:
- TARGET=msp430-elf
global:
- VERSION=10.1.0
- PKG_VER=${VERSION}-${TRAVIS_BUILD_NUMBER}
stages:
- name: deploy
# require the branch name to be master (note for PRs this is the base branch name)
if: branch = master
before_install:
- sudo apt-get -y install build-essential libgmp-dev libmpfr-dev libmpc-dev libz-dev wget texinfo
script:
- mkdir out
- ./build.sh ${TARGET} build_all > /dev/null
- ls
- pwd
- ls ${HOME}/opt
- tar -C${HOME}/opt -czf $(pwd)/out/riot-${TARGET}-${PKG_VER}.tgz riot-toolchain/${TARGET}
before_deploy:
# Set up git user name and tag this commit
- git config --local user.name "[email protected]"
- git config --local user.email "[email protected]"
- export TRAVIS_TAG=${TRAVIS_TAG:-${PKG_VER}-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)}
- git tag $TRAVIS_TAG
deploy:
provider: releases
token:
secure: "eVFVJm07cC/+5PzOzzH1mzm7NqcZ2SxT0Av/gdy0VpCxT3X7OV+JSoUefgQihW1bIxhVqg1VHyYD5RenMb52omV4fW6xfQY4/kejNXuJhXBe4duzTAvbB1nDkHw6zfhULU4o3IK0yM1N+s+TxrJlNJw0wVCqJSsmW4I47mk5LMF4YWpr6N1/kVFlhmgFL1i71n8EZGpKO8dQh7q8Ayeuckz9nZel/u/n7Wgm11PCJaidD1K+MZBhioe4jXVw+IboMqJDxUZOsEPRMkxpdUpMtAvAuLKB0oczSS9JlFTeASJz4rnSZJblyRMbU8jSKOBWFtKmYI5T1pbYeauTK/EVrXsg7Ufa76NkZ1Z4wZJD68rdI1PWw6pesNvmKq7oR2f6OyVkqEk8HmOpmbHuyWImPE7yBFD3MQ+Lg5pCIWi0phzZoWr5UDJ8X4J9h/h+m7VwnHF8cxu7qZKsza20GqSkw70OXw9o/rYPBz+srKQBqRM4YGow3KubHPAMeyMBPdF5HTAbUKjwZpOAlJ2K6R1nKsRsrYK2uz5UCxwsrzTcpaNoDK//qiRf9oFfXb01lJnHmDZz6L9aQt4dnW1Yi5wqDgd+DEPiilgbX2AghY7P7oUQRWDJpEShZwV2ppZ5WWeeXoVMJx+AyXqteZwBlfJ4QWAescs/ok2iYrmjLylL9X8="
skip_cleanup: true
draft: true
file_glob: true
file: out/*