mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-15 05:52:57 +00:00
Setup travis en template update
This commit is contained in:
32
.travis.yml
32
.travis.yml
@@ -5,10 +5,28 @@ python:
|
|||||||
sudo: required
|
sudo: required
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
install:
|
|
||||||
- pip install --upgrade pip
|
jobs:
|
||||||
- make dev-env
|
include:
|
||||||
script:
|
- stage: install
|
||||||
- set -e
|
script:
|
||||||
- if [ $(make n-docs-diff) -ne 0 ]; then make docs; fi;
|
- pip install --upgrade pip
|
||||||
- if [ $(make n-other-diff) -ne 0 ]; then make build-test-all DARGS="--build-arg TEST_ONLY_BUILD=1"; fi;
|
- make dev-env
|
||||||
|
- stage: test
|
||||||
|
script:
|
||||||
|
- set -e
|
||||||
|
- if [ $(make n-docs-diff) -ne 0 ]; then make docs; fi;
|
||||||
|
- if [ $(make n-other-diff) -ne 0 ]; then make build-test-all DARGS="--build-arg TEST_ONLY_BUILD=1"; fi;
|
||||||
|
- stage: pushback
|
||||||
|
script:
|
||||||
|
- if [ $(make n-docs-diff) -ne 0 ]; then make tx-en; fi;
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- install
|
||||||
|
- test
|
||||||
|
- name: pushback
|
||||||
|
if: branch = master
|
||||||
|
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
secure: JDQKgB1laaenzmEGI9gduwK/iS0030qsl62njJg3jib0R8wxBi2OeetEdoGl9m4NFsqqnp0OO7nm4rzGfuwjL1A38flSlXOTxhjm/hvo3vmnqVu5lDcdk9+IRkafnfd3Dyd86tLxRVETOqZwCLmdNkB2fmQII8du5IIqbJuUGp8DrG7kVMf3NBr9rjkZRfByQrgG4s1NXuT61VvpWMPJAOhcrImuHBheVJDEV0U3n6Xavd7Wo+pAHrHU8exvYTZ1IzZMbHc6K0iC/NpCHcH9+9DAeLDk/q1aDNqbTExnQevOHZzNqgHC2qFOlN4jfy/TLYLpLXtUismneBBqVSK3iZso3Vqy2BRXWgouI+Tt+08ffocy9XPwEzSwkgPgDlFVUikPOy5imwjpDb13RMIyMY4CKlSOdQx2rH2kPkZ0MJJPcki3KGuGl3qRvqyblMn+lZvjAu6WVLZfo7EtcxsQ0ZZxbAbGoUVl27FHg+UvIfC0I3wEcZIp7oED47Q8s0MdCijD3AwkRPvx/iyp3J0A42su7kkOooFcmUItEIqegQJ4Aki1FBv2i5vHmBobClktytZceLsKvzCeLjMpL9HcUVfUaJDKRwtUYIozpYeBnac+E6J1s6glcqLrXIHWez8N6SzokBa6SPqdtODdzzk5OJupByub6CYWsRXvxIQ7/wI=
|
||||||
|
18
Makefile
18
Makefile
@@ -66,6 +66,24 @@ n-docs-diff: ## number of docs/ files changed since branch from master
|
|||||||
n-other-diff: ## number of files outside docs/ changed since branch from master
|
n-other-diff: ## number of files outside docs/ changed since branch from master
|
||||||
@git diff --name-only master...HEAD -- ':!docs/' | wc -l | awk '{print $$1}'
|
@git diff --name-only master...HEAD -- ':!docs/' | wc -l | awk '{print $$1}'
|
||||||
|
|
||||||
|
tx-en: ## rebuild en locale strings and push to master
|
||||||
|
git config --global user.email "travis@travis-ci.org"
|
||||||
|
git config --global user.name "Travis CI"
|
||||||
|
|
||||||
|
git checkout master
|
||||||
|
|
||||||
|
pushd docs
|
||||||
|
make clean gettext
|
||||||
|
sphinx-intl build -p _build/gettext -l en
|
||||||
|
popd
|
||||||
|
|
||||||
|
git add docs/locale/en
|
||||||
|
git commit -m "Update en source strings for $$TRAVIS_COMMIT"
|
||||||
|
|
||||||
|
git remote add origin-tx https://$${GH_TOKEN}@github.com/jupyter/docker-stacks.git
|
||||||
|
git push -u origin-tx master
|
||||||
|
|
||||||
|
|
||||||
test/%: ## run tests against a stack
|
test/%: ## run tests against a stack
|
||||||
@TEST_IMAGE="$(OWNER)/$(notdir $@)" pytest test
|
@TEST_IMAGE="$(OWNER)/$(notdir $@)" pytest test
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user