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
e40f2d3c
Commit
e40f2d3c
authored
Oct 02, 2015
by
Bruno
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #80 from oh-my-fish/dockerize
Dockerize
parents
e59b7512
dde679ff
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
41 additions
and
72 deletions
+41
-72
.travis.yml
.travis.yml
+12
-27
Dockerfile
Dockerfile
+11
-0
lib/refresh.fish
lib/refresh.fish
+1
-1
pkg/omf/cli/omf.destroy.fish
pkg/omf/cli/omf.destroy.fish
+1
-1
tests/functions_override/refresh.fish
tests/functions_override/refresh.fish
+0
-10
tools/branch-name.sh
tools/branch-name.sh
+16
-0
tools/travis_install_fish.sh
tools/travis_install_fish.sh
+0
-12
tools/travis_install_omf.sh
tools/travis_install_omf.sh
+0
-21
No files found.
.travis.yml
View file @
e40f2d3c
language
:
c
os
:
-
linux
sudo
:
false
addons
:
apt
:
packages
:
-
bc
-
doxygen
-
expect
-
gettext
-
libncurses5-dev
-
tree
sudo
:
required
services
:
-
docker
env
:
global
:
-
PATH="$HOME/fish/bin:$PATH"
-
OMF_REPO_URI="https://github.com/$TRAVIS_REPO_SLUG"
-
OMF_REPO_BRANCH="$TRAVIS_BRANCH"
before_install
:
-
tools/travis_install_fish.sh
-
fish -c 'ln -sf $TRAVIS_BUILD_DIR/tests/functions_override $fish_function_path[1]'
-
export OMF_REPO_BRANCH=`tools/branch-name.sh`
-
docker build -t fish . < Dockerfile
before_script
:
pwd; tree -h
before_script
:
-
docker run -e 'CI=WORKAROUND' -e "OMF_REPO_URI=$OMF_REPO_URI" -e "OMF_REPO_BRANCH=$OMF_REPO_BRANCH" -t -v $PWD:/src/oh-my-fish fish /usr/bin/fish -c "/src/oh-my-fish/bin/install"
-
docker ps -a -q | xargs -i docker commit {} oh-my-fish
-
docker run -t -w "/root/.local/share/omf" oh-my-fish /usr/bin/fish -c "export; tree -h"
script
:
-
/bin/sh tools/travis_install_omf.sh
-
tests/test_runner.fish
-
tests/test-generate-themes-doc.fish
after_script
:
-
cd ~/.config/fish; tree -h; find . -type f | xargs cat
cache
:
directories
:
-
$HOME/fish
-
docker run -t -w "/root/.local/share/omf" oh-my-fish /usr/bin/fish "tests/test_runner.fish"
-
docker run -t -w "/root/.local/share/omf" oh-my-fish /usr/bin/fish "tests/test-generate-themes-doc.fish"
notifications
:
email
:
...
...
Dockerfile
0 → 100644
View file @
e40f2d3c
FROM
ubuntu
RUN
echo
"Installing fish"
RUN
sudo
apt-get
install
-y
software-properties-common
&&
\
sudo
apt-add-repository ppa:fish-shell/release-2
&&
\
sudo
apt-get
-y
update
&&
\
sudo
apt-get
-y
install
fish
RUN
echo
"Installing dependencies"
RUN
sudo
apt-get
-y
install
curl git tree
lib/refresh.fish
View file @
e40f2d3c
...
...
@@ -5,5 +5,5 @@
# Refresh (reload) the current fish session.
function refresh -d "refresh the fish session"
exec fish < /dev/tty
set -q CI; or
exec fish < /dev/tty
end
pkg/omf/cli/omf.destroy.fish
View file @
e40f2d3c
...
...
@@ -20,5 +20,5 @@ function omf.destroy -d "Remove Oh My Fish"
rm -rf "$OMF_PATH"
end
exec fish < /dev/tty
set -q CI; or
exec fish < /dev/tty
end
tests/functions_override/refresh.fish
deleted
100644 → 0
View file @
e59b7512
# SYNOPSIS
# refresh
#
# OVERVIEW
# Refresh (reload) the current fish session.
function refresh -d "refresh the fish session (Travis Override)"
echo !!! Shell refresh requested in testing Environment !!!
exit 0;
end
tools/branch-name.sh
0 → 100755
View file @
e40f2d3c
#!/usr/bin/env sh
URL
=
https://api.github.com/repos/
$TRAVIS_REPO_SLUG
/pulls/
$TRAVIS_PULL_REQUEST
BRANCH_NAME
=
`
curl
-s
$URL
^/dev/null
\
|
grep
-C
2
"head"
\
|
grep
\"
ref
\"
\
|
cut
-d
':'
-f2-
\
|
sed
-e
's/["|,]//g;s/^[ \t]//g'
`
if
[
-n
"
$BRANCH_NAME
"
]
;
then
echo
$BRANCH_NAME
else
echo
$TRAVIS_BRANCH
fi
tools/travis_install_fish.sh
deleted
100755 → 0
View file @
e59b7512
#!/bin/sh
set
-e
BINDIR
=
$HOME
/fish/bin
# check to see if fish bin doesn't exist
if
[
!
-x
"
$BINDIR
/fish"
]
;
then
cd
/tmp
wget
-O
- https://github.com/fish-shell/fish-shell/releases/download/2.2.0/fish-2.2.0.tar.gz |
tar
xzv
cd
fish-2.2.0
&&
./configure
--prefix
=
$HOME
/fish
&&
make
-j2
&&
make
install
;
strip
$BINDIR
/fish
$BINDIR
/fish_indent
$BINDIR
/mimedb
else
echo
'Using cached directory.'
;
fi
tools/travis_install_omf.sh
deleted
100755 → 0
View file @
e59b7512
#!/bin/sh
git
()
{
case
$1
in
clone
)
command
git
"
$@
"
if
test
"
$TRAVIS_PULL_REQUEST
"
!=
"false"
;
then
echo
"! detecting a pull request !"
echo
"
$
git -C
$OMF_PATH
fetch origin +refs/pull/
$TRAVIS_PULL_REQUEST
/merge:"
git
-C
$OMF_PATH
fetch origin +refs/pull/
$TRAVIS_PULL_REQUEST
/merge:
echo
"
$
git -C
$OMF_PATH
checkout -qf FETCH_HEAD"
git
-C
$OMF_PATH
checkout
-qf
FETCH_HEAD
fi
;;
*
)
command
git
"
$@
"
;;
esac
}
.
$TRAVIS_BUILD_DIR
/bin/install
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