forked from MTSR/mapserver
50 lines
2.3 KiB
YAML
50 lines
2.3 KiB
YAML
jobs:
|
|
include:
|
|
- stage: go-test
|
|
language: go
|
|
sudo: false
|
|
go:
|
|
- 1.11.x
|
|
os:
|
|
- linux
|
|
script:
|
|
- env GO111MODULE=on go get github.com/mjibson/esc
|
|
- env GO111MODULE=on go generate
|
|
- env GO111MODULE=on go build
|
|
- env GO111MODULE=on go test ./...
|
|
|
|
- stage: jshint
|
|
language: node_js
|
|
os:
|
|
- linux
|
|
script:
|
|
- npm i -g jshint
|
|
- cd static/js && jshint
|
|
|
|
- stage: dockerhub push
|
|
if: tag IS NOT present
|
|
language: ruby
|
|
services:
|
|
- docker
|
|
script:
|
|
- docker build -t $IMAGE:latest .
|
|
- docker login -u $DOCKER_USER -p $DOCKER_PASS
|
|
- docker push $IMAGE:latest
|
|
|
|
- stage: dockerhub push tag
|
|
if: tag IS present
|
|
language: ruby
|
|
services:
|
|
- docker
|
|
script:
|
|
- docker build -t $IMAGE:latest .
|
|
- docker tag $IMAGE:latest $IMAGE:$TRAVIS_TAG
|
|
- docker login -u $DOCKER_USER -p $DOCKER_PASS
|
|
- docker push $IMAGE:$TRAVIS_TAG
|
|
|
|
env:
|
|
global:
|
|
- IMAGE=minetestmapserver/mapserver
|
|
- secure: AH7d5fhIWuQlmTTZ72niDV+AHTGoBhjXxh+zSJcfqny8JctvfFNuwjc+IuQjlwdsEob6VEEVGfWNIdOwNVpkuJRuH9s5LVnBovbcORc2emOUnK8ecWdLUj9frApSHWxbHAaKCYfGOWdFnFhWWhhB4VzWTy8NkfcpqqQgxFtT5unD7GXuOjLOOdfHpFhjkji1GkWGOblBeLI6MIoVIaPWtFh+zKI/tzD5cW7ISzaMLY0rVg8jyxyZcCpsrEJNQzJ4gjyME0Cx+aEGyxaH71qwlf7O2IaZMlUGY2+BzVVND2Cd1//vx7mJrrNccODgqGy4pQhXQNTyOa6+9JqOAxhY/ykjIlzurXmVmEMEidtxrsR5bar6eLfh8EPAFS8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