factorio-docker/.travis.yml

34 lines
1003 B
YAML
Raw Normal View History

dist: xenial
sudo: required
language: bash
services:
- docker
2019-11-11 22:03:20 +01:00
addons:
apt:
packages:
- jq
jobs:
include:
- stage: test
script:
- git ls-files --exclude='*Dockerfile' --ignored | xargs --max-lines=1 -I{} sh -c 'docker run --rm -i -v ${PWD}/.hadolint.yaml:/.hadolint.yaml hadolint/hadolint < "$1"' -- {}
- bash -c 'shopt -s globstar; shellcheck **/*.sh'
2019-11-11 22:03:20 +01:00
- stage: Update Docker HUB description
if: branch = master
script: docker run -v $PWD:/workspace -e DOCKERHUB_USERNAME=$DOCKER_USERNAME -e DOCKERHUB_PASSWORD=$DOCKER_PASSWORD -e DOCKERHUB_REPOSITORY='factoriotools/factorio' -e README_FILEPATH='/workspace/README.md' peterevans/dockerhub-description:2.1.0
- &build
stage: build
2019-11-07 00:21:39 +01:00
env: VERSION_SHORT=0.17 EXTRA_TAG=latest STABLE=0.17.74
script:
- ./build.sh $VERSION_SHORT
- <<: *build
env: VERSION_SHORT=0.16
- <<: *build
env: VERSION_SHORT=0.15
- <<: *build
env: VERSION_SHORT=0.14