Merge pull request #11 from gmemstr/master

Update TravisCI in vue-admin branch
This commit is contained in:
Gabriel Simmer 2017-10-07 17:17:26 -07:00 committed by GitHub
commit 1c836ccaa9
3 changed files with 26 additions and 12 deletions

View file

@ -1,5 +1,7 @@
language: go language: go
sudo: false sudo: false
services:
- docker
matrix: matrix:
include: include:
- go: 1.7 - go: 1.7
@ -20,3 +22,9 @@ matrix:
- go test - go test
- go build - go build
- ls -al - ls -al
script:
- docker build -t gmemstr/pogo .
- docker run -d --name pogo -p 3000:3000 gmemstr/pogo
- sleep 10
- docker ps -a | grep gmemstr/pogo

View file

@ -1,11 +1,17 @@
# Use latest golang image # Use latest golang image
FROM golang:latest FROM golang:latest
RUN mkdir -p /go/src \
&& mkdir -p /go/bin \
&& mkdir -p /go/pkg
ENV GOPATH=/go
ENV PATH=$GOPATH/bin:$PATH
# Set working directory # Set working directory
WORKDIR /POGO WORKDIR $GOPATH/src/github.com/gmemstr/pogo
# Add source to container so we can build # Add source to container so we can build
ADD . /POGO ADD . $GOPATH/src/github.com/gmemstr/pogo
# 1. Install make and dependencies # 1. Install make and dependencies
# 2. Install Go dependencies # 2. Install Go dependencies
@ -13,8 +19,9 @@ ADD . /POGO
# 4. List directory structure (for debugging really)\ # 4. List directory structure (for debugging really)\
# 5. Make empty podcast direcory # 5. Make empty podcast direcory
# 6. Create empty feed files # 6. Create empty feed files
RUN godep restore && \ RUN ls -al && go get github.com/tools/godep && \
make linux && chmod +x pogoapp && \ godep restore && \
go build -o pogoapp && chmod +x pogoapp && \
ls -al && \ ls -al && \
mkdir podcasts && \ mkdir podcasts && \
touch assets/web/feed.rss assets/web/feed.json && \ touch assets/web/feed.rss assets/web/feed.json && \
@ -22,6 +29,6 @@ RUN godep restore && \
echo '{}' >assets/config/users.json && \ echo '{}' >assets/config/users.json && \
echo '{}' >assets/config/config.json echo '{}' >assets/config/config.json
EXPOSE 8000 EXPOSE 3000
CMD ./pogoapp CMD ./go/src/github.com/gmemstr/pogoapp

View file

@ -31,7 +31,7 @@ To produce a product that is easy to deploy and easier to use when hosting a pod
``` ```
godep restore godep restore
go build go build
# Set enviornment variable # Set environment variable
export POGO_SECRET=secret export POGO_SECRET=secret
# Windows # Windows
# set POGO_SECRET=secret # set POGO_SECRET=secret
@ -43,7 +43,6 @@ export POGO_SECRET=secret
Pogo uses a flat file structure for managing podcast episodes. As such, files have a special naming convention. Pogo uses a flat file structure for managing podcast episodes. As such, files have a special naming convention.
For podcast audio files, filenames take the form of YEAR-MONTH-DAY followed by the title. The two values are For podcast audio files, filenames take the form of YEAR-MONTH-DAY followed by the title. The two values are
seperated by underscores (`YYYY-MM-DD_TITLE.mp3`). separated by underscores (`YYYY-MM-DD_TITLE.mp3`).
Shownote fils are markdown formatted and simply append `_SHOWNOTES.md` to the existing filename (sans .mp3 of course).
"Shownote" files are markdown formatted and simply append `_SHOWNOTES.md` to the existing filename (sans .mp3 of course).