Skip to content

Commit

Permalink
chore: update dita-ot
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Kato <joseph@jdkato.io>
  • Loading branch information
jdkato committed Jan 7, 2021
1 parent 6b3c281 commit bf37084
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Expand Up @@ -12,14 +12,14 @@ go:
before_install:
- export BUNDLE_GEMFILE=$PWD/Gemfile
- export TRAVIS_RUBY_VERSION="$(ruby -e 'puts RUBY_VERSION')-travis"
- export PATH=$PATH:~/bin:$PWD/dita-ot-3.4/bin/
- export PATH=$PATH:~/bin:$PWD/dita-ot-3.6/bin/

# NOTE: This is just for testing purposes -- we want to ensure that
# GoDownloader is working.
- curl -sfL https://install.goreleaser.com/github.com/ValeLint/vale.sh | sh -s latest

- wget https://github.com/dita-ot/dita-ot/releases/download/3.4/dita-ot-3.4.zip
- unzip dita-ot-3.4.zip > /dev/null 2>&1
- wget https://github.com/dita-ot/dita-ot/releases/download/3.6/dita-ot-3.6.zip
- unzip dita-ot-3.6.zip > /dev/null 2>&1

- sudo apt-get install -y xsltproc
- pip install --user sphinx
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Expand Up @@ -8,10 +8,10 @@ RUN apk add --no-cache --update \
py3-sphinx \
asciidoctor

RUN wget https://github.com/dita-ot/dita-ot/releases/download/3.4/dita-ot-3.4.zip
RUN unzip dita-ot-3.4.zip > /dev/null 2>&1
RUN wget https://github.com/dita-ot/dita-ot/releases/download/3.6/dita-ot-3.6.zip
RUN unzip dita-ot-3.6.zip > /dev/null 2>&1

COPY bin/vale /bin

ENV PATH="/bin:/dita-ot-3.4/bin:${PATH}"
ENV PATH="/bin:/dita-ot-3.6/bin:${PATH}"
ENTRYPOINT ["/bin/vale"]
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -50,7 +50,7 @@ test:
cucumber --format progress

docker:
GOOS=linux GOARCH=amd64 go build ${LDFLAGS} -o bin/vale
GOOS=linux GOARCH=amd64 go build -tags closed ${LDFLAGS} -o bin/vale ./cmd/vale
docker login -u jdkato -p ${DOCKER_PASS}
docker build -f Dockerfile -t jdkato/vale:latest .
docker tag jdkato/vale:latest jdkato/vale:${LAST_TAG}
Expand Down

0 comments on commit bf37084

Please sign in to comment.