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
320578df
Commit
320578df
authored
Dec 05, 2015
by
Bruno Pinto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A correct Dockerfile usage
parent
391ea898
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
14 deletions
+18
-14
.travis.yml
.travis.yml
+7
-6
Dockerfile
Dockerfile
+11
-8
tests/run.fish
tests/run.fish
+0
-0
No files found.
.travis.yml
View file @
320578df
...
...
@@ -10,16 +10,17 @@ env:
before_install
:
-
source tools/travis-github-pr-integration.sh
-
docker build -t fish . < Dockerfile
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"
-
docker build --build-arg OMF_REPO_BRANCH=$OMF_REPO_BRANCH --build-arg OMF_REPO_URI=$OMF_REPO_URI -t oh-my-fish . < Dockerfile
-
docker run -t oh-my-fish /usr/bin/fish -c "export; tree -h"
script
:
-
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"
-
docker run -t oh-my-fish /usr/bin/fish "tests/run.fish"
-
docker run -t oh-my-fish /usr/bin/fish "tests/test-generate-themes-doc.fish"
after_failure
:
-
docker ps -a
notifications
:
email
:
...
...
Dockerfile
View file @
320578df
FROM
ubuntu
FROM
ohmyfish/fish:2.2.0
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
COPY
. /src/oh-my-fish
RUN
echo
"Installing dependencies"
RUN
sudo
apt-get
-y
install
curl git tree
# Prevent install from opening a new fish shell
ENV
CI WORKAROUND
# Replace this when offline installation is supported
ARG
OMF_REPO_BRANCH=master
ARG
OMF_REPO_URI=https://github.com/oh-my-fish/oh-my-fish
RUN
fish /src/oh-my-fish/bin/install
WORKDIR
/root/.local/share/omf
tests/
test_runner
.fish
→
tests/
run
.fish
100755 → 100644
View file @
320578df
File moved
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