-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
103 lines (99 loc) · 3.06 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
os: osx
rvm: system
language: ruby
matrix:
include:
- env: OSX=10.13
osx_image: xcode10.1
cache:
directories:
- $HOME/Library/Caches/Homebrew
before_install:
- export TRAVIS_COMMIT="$(git rev-parse --verify -q HEAD)"
- if [ -f ".git/shallow" ]; then
travis_retry git fetch --unshallow;
fi
- sudo chown -R $USER "$(brew --repo)"
- git -C "$(brew --repo)" reset --hard origin/master
- git -C "$(brew --repo)" clean -qxdff
- export HOMEBREW_DEVELOPER="1"
- brew update || brew update
- rm -rf "$(brew --repo $TRAVIS_REPO_SLUG)"
- mkdir -p "$(brew --repo $TRAVIS_REPO_SLUG)"
- rsync -az "$TRAVIS_BUILD_DIR/" "$(brew --repo $TRAVIS_REPO_SLUG)"
- export TRAVIS_BUILD_DIR="$(brew --repo $TRAVIS_REPO_SLUG)"
- cd "$(brew --repo)"
- ulimit -n 1024
script:
# Homebrew style checks
- brew audit $(brew --repo $TRAVIS_REPO_SLUG)/Formula/*.rb
- brew style $(brew --repo $TRAVIS_REPO_SLUG)/Formula/*.rb
# Install supported packages
# ---- gcc-arm-none-eabi
- brew install gcc-arm-none-eabi-53
- brew unlink gcc-arm-none-eabi-53
- brew install gcc-arm-none-eabi-63
- brew unlink gcc-arm-none-eabi-63
# ---- clang-llvm
- brew install clang-llvm-400
- brew unlink clang-llvm-400
# ---- skycoin-cx
- brew install skycoin-cx
- brew unlink skycoin-cx
# ---- skycoin-cli
- brew install skycoin-cli
- brew unlink skycoin-cli
# ---- objconv
- brew install objconv
- brew unlink objconv
# Install extra packages
# ---- gcc-arm-none-eabi
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
brew install gcc-arm-none-eabi-47 ;
brew unlink gcc-arm-none-eabi-47 ;
fi
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
brew install gcc-arm-none-eabi-48 ;
brew unlink gcc-arm-none-eabi-48 ;
fi
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
brew install gcc-arm-none-eabi-49 ;
brew unlink gcc-arm-none-eabi-49 ;
fi
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
brew install gcc-arm-none-eabi-54 ;
brew unlink gcc-arm-none-eabi-54 ;
fi
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
brew install gcc-arm-none-eabi-62 ;
brew unlink gcc-arm-none-eabi-62 ;
fi
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
brew install gcc-arm-none-eabi-74 ;
brew unlink gcc-arm-none-eabi-74 ;
fi
# ---- clang-llvm
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
brew install clang-llvm-401 ;
brew unlink clang-llvm-401 ;
fi
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
brew install clang-llvm-500 ;
brew unlink clang-llvm-500 ;
fi
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
brew install clang-llvm-501 ;
brew unlink clang-llvm-501 ;
fi
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
brew install clang-llvm-502 ;
brew unlink clang-llvm-502 ;
fi
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
brew install clang-llvm-600 ;
brew unlink clang-llvm-600 ;
fi
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
brew install clang-llvm-700 ;
brew unlink clang-llvm-700 ;
fi