Skip to content

Commit

Permalink
Update CI testing minimally
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Oct 19, 2019
1 parent a5bc7e3 commit 985d9c1
Showing 1 changed file with 31 additions and 17 deletions.
48 changes: 31 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,49 @@ python:
- 3.6
cache: pip
install:
- set -e
- pip install --upgrade pip
- pip install pyflakes .
script:
- chartpress --version
- chartpress --help
- pyflakes .

# This is a workaround to an issue caused by the existence of a docker registry
# mirror in our CI environment. Without this fix that removes the mirror,
# chartpress fails to realize the existence of already built images and rebuilds
# them.
# This is a workaround to an issue caused by the existence of a docker
# registrymirror in our CI environment. Without this fix that removes the
# mirror, chartpress fails to realize the existence of already built images
# and rebuilds them.
#
# ref: https://github.com/moby/moby/issues/39120
- |-
echo '{"mtu": 1460}' | sudo dd of=/etc/docker/daemon.json &&
sudo systemctl restart docker
echo '{"mtu": 1460}' | sudo dd of=/etc/docker/daemon.json &&
sudo systemctl restart docker &&
echo "Travis docker registry mirroring disabled.\n\n"
# run chartpress on zero-to-jupyterhub-k8s
- |-
git clone https://github.com/jupyterhub/zero-to-jupyterhub-k8s &&
cd zero-to-jupyterhub-k8s &&
chartpress
- git --no-pager diff
git clone https://github.com/jupyterhub/zero-to-jupyterhub-k8s &&
cd zero-to-jupyterhub-k8s &&
chartpress &&
echo "\n\n### realistic run: expecting no rebuilds" &&
git --no-pager diff --unified=1
- chartpress --skip-build --tag 1.2.3-test.tag
- git --no-pager diff
- |-
chartpress --skip-build --tag 1.2.3-test.tag &&
echo "\n\n### --tag --skip-build: expecting no rebuilds and version 1.2.3-test.tag" &&
git --no-pager diff --unified=1
- |-
git tag -a 1.2.3-test.tag -m 1.2.3-test.tag HEAD &&
chartpress --skip-build &&
echo "\n\n### git tag: expecting version 1.2.3-test.tag" &&
git --no-pager diff --unified=1
- chartpress --long
- git --no-pager diff
- |-
chartpress --skip-build --long &&
echo "\n\n### --long: expecting version 1.2.3-test.tag+000.asdf1234" &&
git --no-pager diff --unified=1
- chartpress --reset
- git --no-pager diff
- |-
chartpress --reset &&
echo '\n\n### --reset: expecting version "0.0.1+set.by.chartpress"' &&
git --no-pager diff --unified=1

0 comments on commit 985d9c1

Please sign in to comment.