-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
37 lines (37 loc) · 2.42 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
addons:
homebrew:
update: true
language: swift
os: osx
osx_image: xcode12.2
before_install:
- cd "$(mktemp -d)"
- echo "2c3cb01e70f1d4a384944edf4bb940d8ba06e8bf8539f7cff90ee2e593b6ee14 ./shellcheck.rb" >> formulas.sha256sum
- echo "db3e8d1230379f32710b11ee4f824eceafea16fbcf07f61a93da440f430cee67 ./shfmt.rb" >> formulas.sha256sum
- echo "bedc61ae0d0ac33c5de9ebfa2ffb482059e194ab3ac34ff7f77ad904ebb5814f ./swiftlint.rb" >> formulas.sha256sum
- echo "b4ab76e6c0e76c33875478c2adaedfbebc07c624905a3403874bbd1a0b6b3828 ./swiftformat.rb" >> formulas.sha256sum
- curl --proto "=https" --tlsv1.2 -sSf https://raw.githubusercontent.com/Homebrew/homebrew-core/716c0578846b23c2fbdf8315da9af8b6ca2c96aa/Formula/shellcheck.rb -o shellcheck.rb
- curl --proto "=https" --tlsv1.2 -sSf https://raw.githubusercontent.com/Homebrew/homebrew-core/290a7cbdbc7ab4f5c52e82d014acbc530a71c765/Formula/shfmt.rb -o shfmt.rb
- curl --proto "=https" --tlsv1.2 -sSf https://raw.githubusercontent.com/Homebrew/homebrew-core/f3394380d569634e6a751f7b49af12e9bf777c22/Formula/swiftlint.rb -o swiftlint.rb
- curl --proto "=https" --tlsv1.2 -sSf https://raw.githubusercontent.com/Homebrew/homebrew-core/d8557ff95d1dd50d667521877771f72182e70219/Formula/swiftformat.rb -o swiftformat.rb
- shasum --algorithm 256 --check formulas.sha256sum
- brew reinstall --force-bottle ./shellcheck.rb
- brew reinstall --force-bottle ./shfmt.rb
- brew reinstall --force-bottle ./swiftlint.rb
- brew reinstall --force-bottle ./swiftformat.rb
- cd -
script:
- ./script/lint
- make
before_deploy:
- ./script/archive --package
deploy:
provider: releases
api_key:
secure: HSQTDi4+GFGvvqKKKapUBlUdt5Gqkbz1G7Eo9f2axWQZsjqRUgvFgOUbEApw4JDsw4yscjNQAOFeirOLnzqp3eHmTV4L+s0rJEvN4kyekE7iXiIjGFH1Qh972kNGyx25xwuWB89ixpKHU+zdMUqEg9x7WwDoZxhyLXu0Ubzv9kzR+Jp0TRIBNNVn6F3KYnqk64FvMVgU4WZR+FWQsC2vJZ6jT/C91y0/DuopIgCqnbzwkl9rZBAwnlbgCslBuNLeOCN0yG6PmITQ2CnrSB89AG038RjoIUwlovDTIH/HzUFEJ/VaEN+LVcCo+ccRQ3kR61PIQnOWe6OtQspRdgsTtPAW7byuX/Y9cjoTNqXoQtjgV64pWRf6rQ+7mZoCKDMt6d1eyJasmAxWGVA6hmcsVU9HeuI32fsYVDshOG99VbOKpK5C/AEoA6jgFL0HEmZzz3BEkZHV451xIybCMbVeWqLwu5o3jI+dd9SYHgmCaCwEESSjeC3PChe6Of/MdeJxLiX4oz4HqFiZHQP9zzeKH8RDTOpGkHQM1EKatOor5hkrhVh/1ZBi4QudUPTrQFwBnjK1MuSmSMRDItFivpNertpQVsmHKLasl2k1KEnlwasffHA2ysMsLrcT+bnLyGSbcK6x6CEALr7Llo5IKhnebPHeaEvBKTQKyPQeqFVbMG0=
file: ./archive/zero-$TRAVIS_TAG.tar.gz
skip_cleanup: true
on:
master: true
repo: zero-sh/zero.sh
tags: true