Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
O
oh-my-fish
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
oh-my-fish
Commits
6aaa78a1
Commit
6aaa78a1
authored
Dec 06, 2020
by
Pablo Santiago Blum de Aguiar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move build from TravisCI to GitHub Actions
parent
85afe3c4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
101 additions
and
67 deletions
+101
-67
.github/workflows/build.yml
.github/workflows/build.yml
+75
-0
.travis.yml
.travis.yml
+0
-43
tools/ci-install-fish.sh
tools/ci-install-fish.sh
+26
-0
tools/travis-github-pr-integration.sh
tools/travis-github-pr-integration.sh
+0
-17
tools/travis-install-git.sh
tools/travis-install-git.sh
+0
-7
No files found.
.github/workflows/build.yml
0 → 100644
View file @
6aaa78a1
name
:
Build
on
:
[
push
,
pull_request
]
jobs
:
build
:
strategy
:
fail-fast
:
false
matrix
:
os
:
-
ubuntu-16.04
-
ubuntu-18.04
-
ubuntu-20.04
-
ubuntu-latest
fish
:
-
stock
-
2
-
3
-
brew
exclude
:
-
os
:
ubuntu-20.04
fish
:
2
-
os
:
ubuntu-latest
fish
:
2
include
:
-
os
:
macos-10.15
fish
:
brew
-
os
:
macos-11.0
fish
:
brew
-
os
:
macos-latest
fish
:
brew
runs-on
:
${{ matrix.os }}
steps
:
-
name
:
Checkout the repository
uses
:
actions/checkout@v2
-
name
:
Install Fish
run
:
FISH_RELEASE=${{ matrix.fish }} tools/ci-install-fish.sh
-
name
:
Install Oh My Fish!
run
:
fish bin/install --verbose --offline --noninteractive --yes
-
name
:
Run tests
run
:
|
tests/run.fish
pushd pkg/fish-spec; fish -c 'fish-spec'; popd
pushd pkg/omf; fish -c 'fish-spec'; popd
notify-success
:
needs
:
[
build
]
if
:
success()
runs-on
:
ubuntu-latest
steps
:
-
name
:
Notify on Slack
uses
:
rtCamp/action-slack-notify@ae4223259071871559b6e9d08b24a63d71b3f0c0
env
:
SLACK_WEBHOOK
:
${{ secrets.SLACK_WEBHOOK }}
SLACK_ICON
:
false
SLACK_COLOR
:
good
SLACK_USERNAME
:
GitHub Actions
SLACK_TITLE
:
Build Success
SLACK_FOOTER
:
"
"
notify-failure
:
needs
:
[
build
]
if
:
failure()
runs-on
:
ubuntu-latest
steps
:
-
name
:
Notify on Slack
uses
:
rtCamp/action-slack-notify@ae4223259071871559b6e9d08b24a63d71b3f0c0
env
:
SLACK_WEBHOOK
:
${{ secrets.SLACK_WEBHOOK }}
SLACK_ICON
:
false
SLACK_COLOR
:
danger
SLACK_USERNAME
:
GitHub Actions
SLACK_TITLE
:
Build Failure
SLACK_FOOTER
:
"
"
.travis.yml
deleted
100644 → 0
View file @
85afe3c4
language
:
c
dist
:
trusty
os
:
-
linux
-
osx
addons
:
apt
:
packages
:
-
bc
-
doxygen
-
expect
-
gettext
-
libncurses5-dev
-
tree
before_install
:
-
tools/travis-install-git.sh
-
source tools/travis-github-pr-integration.sh
-
tools/travis-install-fish.sh
before_script
:
-
tree -h
-
export
-
pushd bin; sha256sum -c install.sha256; popd
-
fish $TRAVIS_BUILD_DIR/bin/install --verbose --offline --noninteractive --yes
script
:
-
tests/run.fish
-
pushd pkg/fish-spec; fish -c 'fish-spec'; popd
-
pushd pkg/omf; fish -c 'fish-spec'; popd
after_failure
:
-
pwd
-
cd ~/.config/fish; tree -h; find . -type f | xargs cat
notifications
:
email
:
on_success
:
never
on_failure
:
change
slack
:
secure
:
fHR34H901zaBpUdm9BECQfocnPki8HdigH9CQxopvJ6Rm0WCLzCst4zPESAlO/Jb1t6OYtU6Goqmdq3yqzo8+moCrygrpMUtzIel/TDhkLzC2SIlmMdnw2/Xdwzisd/8QBVwu9ns8xJ2C4eegolNazNsc1Ow/wULaLwA7vUJrfcSmvYBepfe3MPSX/KLU3BBRhiTr3RhuzV+D1qQcSrAiWGVr4zWUiRAar6WD1D4athZO9OX33upBYpraGEa3sRWrUJjVv7KWMH566Y2MSAtd0NBgsF9dn3S5nKTXtfyGXt2gkykZ9Ag1B7B9AR9BHpn5UcvDdn7FZpEREfrllkDU8iG67RD7owyRl/T5jyWQecU2Q9Rlco5esEpbkY7sXmzwj2RVBGzsaVjxajZ+C7Ns2ogMcP8o+xqfcUASXjlJM2kJQRSenwx82Vq6uQ0vbhgKWBTQE1qsEkLDCthUxQ9eJ0/exoBp95wrZinilmEyps00oqmS40HEhB+JmuN2sGVWhpSczVDvVmdV+XSewLqfRnWtr2yhL8dR1sfVm2lJh3Dzik4BFUASByeBJnViU4dDilLlb4S3Dwk0XZh9HGwLs9ujNA3PT23uoRu4VRBQkIwXZE8v/qvf4/7w8IowofzezYcjwxkaqu1hNgTKNOkbgopV9RdwrUxy4f53S0l2jY=
tools/
travis
-install-fish.sh
→
tools/
ci
-install-fish.sh
View file @
6aaa78a1
...
...
@@ -3,14 +3,24 @@
set
-o
pipefail
set
-o
errexit
set
-o
nounset
#set -o xtrace
# Return if we are not in a Pull Request
if
[[
"
$TRAVIS_OS_NAME
"
=
"linux"
]]
;
then
sudo
apt-add-repository
-y
ppa:fish-shell/release-2
if
[[
$FISH_RELEASE
=
"brew"
]]
;
then
brew update
brew
install
fish
else
if
[[
$FISH_RELEASE
==
"2"
]]
;
then
REPO_PPA
=
"ppa:fish-shell/release-2"
else
REPO_PPA
=
"ppa:fish-shell/release-3"
fi
if
[[
$FISH_RELEASE
!=
"stock"
]]
;
then
sudo
apt-add-repository
-y
$REPO_PPA
fi
sudo
apt-cache policy fish
sudo
apt-get update
sudo
apt-get
install
-y
fish
else
brew update
brew
install
fish tree
fi
fish
--version
tools/travis-github-pr-integration.sh
deleted
100755 → 0
View file @
85afe3c4
# Return if we are not in a Pull Request
if
[[
"
$TRAVIS_PULL_REQUEST
"
=
"false"
]]
;
then
export
OMF_REPO_URI
=
"https://github.com/
$TRAVIS_REPO_SLUG
"
export
OMF_REPO_BRANCH
=
"
$TRAVIS_BRANCH
"
return
fi
GITHUB_PR_URL
=
https://api.github.com/repos/
$TRAVIS_REPO_SLUG
/pulls/
$TRAVIS_PULL_REQUEST
GITHUB_PR_BODY
=
$(
curl
-s
$GITHUB_PR_URL
2> /dev/null
)
if
[[
$GITHUB_PR_BODY
=
~
\"
ref
\"
:
\
*
\"
([
a-zA-Z0-9_-]
*
)
\"
]]
;
then
export
OMF_REPO_BRANCH
=
${
BASH_REMATCH
[1]
}
fi
if
[[
$GITHUB_PR_BODY
=
~
\"
repo
\"
:.
*
\"
clone_url
\"
:
\
*
\"
(
https://github
\.
com/[a-zA-Z0-9_-]
*
/[a-zA-Z0-9_-]
*
\.
git
)
.
*
\"
base
\"
]]
;
then
export
OMF_REPO_URI
=
${
BASH_REMATCH
[1]
}
fi
tools/travis-install-git.sh
deleted
100755 → 0
View file @
85afe3c4
#!/usr/bin/env bash
if
[[
"
$TRAVIS_OS_NAME
"
=
"linux"
]]
;
then
sudo
add-apt-repository
-y
ppa:git-core/ppa
sudo
apt-get update
sudo
apt-get
install
--only-upgrade
-y
git
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment