Fix for Travis CI

This commit is contained in:
Michael Mayer
2018-08-15 10:34:03 +02:00
parent 144927b953
commit f99acb0858
2 changed files with 6 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ before_script:
- docker-compose -f docker-compose.travis.yml up --build -d
script:
- docker-compose exec photoprism /usr/local/go/bin/go run cmd/photoprism/photoprism.go migrate-db
- docker-compose exec photoprism /usr/local/go/bin/go test
after_script:

View File

@@ -76,7 +76,7 @@ RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
# Install dependencies
RUN go get github.com/tensorflow/tensorflow/tensorflow/go \
github.com/tensorflow/tensorflow/tensorflow/go/op \
github.com/julienschmidt/httprouter
github.com/julienschmidt/httproutergovendor add +external
# Download InceptionV3 model
RUN mkdir -p /model && \
@@ -88,6 +88,8 @@ RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
RUN mkdir -m 777 /go/pkg/dep
RUN go get -u github.com/kardianos/govendor
# Create user
# RUN adduser --disabled-password --gecos '' photoprism
# USER photoprism
@@ -96,6 +98,8 @@ RUN mkdir -m 777 /go/pkg/dep
WORKDIR "/go/src/github.com/photoprism/photoprism"
COPY . .
RUN cp config.example.yml ~/.photoprism
RUN dep ensure
# Install the app