-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
38 lines (33 loc) · 1.78 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
language: c
branches:
only:
- master
matrix:
include:
- os: osx
osx_image: xcode10.2
env: BUILD_TYPE=xcode COMPILER=clang++ C_COMPILER=clang
- os: linux
dist: trusty
sudo: required
services:
- docker
before_install:
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then gem install xcpretty; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then gem install xcpretty-travis-formatter; fi
script:
- if [[ "$BUILD_TYPE" == "xcode" ]]; then xcodebuild -project RISCV.xcodeproj -scheme RISCV build -configuration Release | xcpretty -f `xcpretty-travis-formatter`; fi
- if [[ "$BUILD_TYPE" == "xcode" ]]; then xcodebuild -project RISCV.xcodeproj -scheme RISCVTests test | xcpretty -f `xcpretty-travis-formatter`; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run --rm -it --user="$(id -u):$(id -g)" --net=none -v "$PWD":/data makigumo/hoppersdk-linux-docker ./build.sh; fi
deploy:
provider: releases
api_key:
secure: KutNTNIv+DLcumYtQ+xtp0OsW9vf9NyTI+2gs4pAH9txalSaPhn5D17MOhOVR5zJH6tCpTngcuUrFcHHVcnUII3GuDBd6/Ifsw0oHgCghkLGTD4LgHIlONFd4ge6wAoVWVI37zmv4yRKyOOENndh59RGEy8fEdvfhtSt1la7smXzp6370r+DrGEIGaa14LVFr0ojdW0FQ3Nocn1XPvu6Obe/euG9XOaw1XNT67VH28HnX83D62jGL1Rlv50vfwej3aR++/BU15WeozecMEO8Zn2+JNfMeKI8Rc8slSfa/q+rnHXD76K9t6N2s9gAEvmRHXzWV7SkdueQ9pmHmsMm17b1VsS+uCSHNcrmeIM0w6oPGMhHKrQzYQmdsZauiZxkr/Hl2zs6lYV0VcG/MIeY6twDrGnX41AV7IkCSKYGAGVoQLbJAFJkT4G+v8K+hiR9HDaVg3bDxfqV/ZvH87BZwFtsV0/jIFoxSyyncjoLoendQ5M6HpQyuDPy9gwKWSK2yXD2wkgqlre+1sB5IKxDVWb+P32msc5qx5WWayuEp1Q4Dlf8rb95jxXQBCVOl6d7eIlKcLjp2e9nQ8c+w1gEdSJzfyOsJGCByN148GhhfsI51ZLo0IE2fn/2H+Z0exndMAqm5K16UnJUwnD63OGFJv2hg3yHoIBHFJ3/FjvmBnY=
file: $TRAVIS_BUILD_DIR/RISCV.zip
skip_cleanup: true
overwrite: true
#draft: true
#prerelease: true
on:
repo: makigumo/RISCV
tags: true