Skip to content

Commit

Permalink
[ci skip] Remove the deploy section in template ymls, because it will…
Browse files Browse the repository at this point in the history
… be automatically added if people need it
  • Loading branch information
PHPirates committed Dec 15, 2018
1 parent dc6e432 commit ce9587c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 46 deletions.
12 changes: 0 additions & 12 deletions 1-tectonic-docker/.travis.yml
Expand Up @@ -8,15 +8,3 @@ script:
- docker run --mount src=$TRAVIS_BUILD_DIR/src,target=/usr/src/tex,type=bind dxjoke/tectonic-docker /bin/sh -c "tectonic main.tex"
# Compiling multiple files as well as using biber:
# - docker run --mount src=$TRAVIS_BUILD_DIR/src,target=/usr/src/tex,type=bind dxjoke/tectonic-docker /bin/sh -c "tectonic --keep-intermediates --reruns 0 biber-mwe.tex; biber biber-mwe; tectonic biber-mwe.tex; tectonic main.tex"

deploy:
provider: releases
api_key:
secure: GK0T9i6YKZlKmxurW4B8lkBGCfUcehODrWA8VcuUaK4CgSYaVj2BzMJj4E7pA3Ucm76bGR9l1yWYA+RHRwg0033A8Tw54hIinAcwiuXCpRwgcVkbbxK77o8Q4g0ooRPAMePtkQrjeq1JgHN2sZUZ2CixhtCDApM8H4yaQW7bb7TmBFut/9YEfiJVBCAE0ZNjbjXSbYADRc9Zh1fy/53xJzgKC57dQnFDrnEsGlwRkrv5lQK+3Dw7ktd48pQe8C3c2LNZn052gaR0TxxzDBAyvG4nmeA17wYMvZk7UhfKYVdqUjNqwyjktvWQQDOAtWL7OrlBNfWyf5bEn1RsfsnZ7lX/3uTj1z2fQeaYcx29goSo6y7cemz+UFsuoG3ggMuD1V81xkLI82WglYnbDEd7wij5kj1+/YAliiiZtO98kLUXbyPKWq0ycmPjj1PKyiX1Gk4LMtPfvDEIdhm/uShCY+6PrOxnGPAEd+gKgA8kAdhkuZ1/IZjkbz0dQpoZgJse7V71x+cop8fvHsuFUcj/irk4qzfVkfhnKuNpMtq2z6HDvQ/GDkZKUTkNaok8rWGFGhE8TiXCoaEoWUASEQcqouQY8KHjqQT6JVgKLwsoPuA34Pb5Fb6tbFzrNT5QE7GTeoVa9GPXJ3IrKepdcRAo3I8GVEyH0rWItdWBH0tU7fo=
file:
- ./src/biber-mwe.pdf
- ./src/main.pdf
skip_cleanup: true
on:
tags: true
branch: master
10 changes: 0 additions & 10 deletions 2-tectonic-miniconda/.travis.yml
Expand Up @@ -51,13 +51,3 @@ script: # Change working directory each time so including files will work. Chang
# Final run of tectonic to create output
- tectonic ./main.tex --print
- cd ../
deploy:
provider: releases
api_key:
secure: GK0T9i6YKZlKmxurW4B8lkBGCfUcehODrWA8VcuUaK4CgSYaVj2BzMJj4E7pA3Ucm76bGR9l1yWYA+RHRwg0033A8Tw54hIinAcwiuXCpRwgcVkbbxK77o8Q4g0ooRPAMePtkQrjeq1JgHN2sZUZ2CixhtCDApM8H4yaQW7bb7TmBFut/9YEfiJVBCAE0ZNjbjXSbYADRc9Zh1fy/53xJzgKC57dQnFDrnEsGlwRkrv5lQK+3Dw7ktd48pQe8C3c2LNZn052gaR0TxxzDBAyvG4nmeA17wYMvZk7UhfKYVdqUjNqwyjktvWQQDOAtWL7OrlBNfWyf5bEn1RsfsnZ7lX/3uTj1z2fQeaYcx29goSo6y7cemz+UFsuoG3ggMuD1V81xkLI82WglYnbDEd7wij5kj1+/YAliiiZtO98kLUXbyPKWq0ycmPjj1PKyiX1Gk4LMtPfvDEIdhm/uShCY+6PrOxnGPAEd+gKgA8kAdhkuZ1/IZjkbz0dQpoZgJse7V71x+cop8fvHsuFUcj/irk4qzfVkfhnKuNpMtq2z6HDvQ/GDkZKUTkNaok8rWGFGhE8TiXCoaEoWUASEQcqouQY8KHjqQT6JVgKLwsoPuA34Pb5Fb6tbFzrNT5QE7GTeoVa9GPXJ3IrKepdcRAo3I8GVEyH0rWItdWBH0tU7fo=
file:
- ./src/main.pdf
skip_cleanup: true
on:
tags: true
branch: master
11 changes: 0 additions & 11 deletions 3-texlive-docker/.travis.yml
Expand Up @@ -14,14 +14,3 @@ tex-config:
# We will use the docker image from https://hub.docker.com/r/strauman/travis-latexbuild/
script:
- docker run --mount src=$TRAVIS_BUILD_DIR/,target=/repo,type=bind strauman/travis-latexbuild:small

deploy:
provider: releases
api_key:
secure: GK0T9i6YKZlKmxurW4B8lkBGCfUcehODrWA8VcuUaK4CgSYaVj2BzMJj4E7pA3Ucm76bGR9l1yWYA+RHRwg0033A8Tw54hIinAcwiuXCpRwgcVkbbxK77o8Q4g0ooRPAMePtkQrjeq1JgHN2sZUZ2CixhtCDApM8H4yaQW7bb7TmBFut/9YEfiJVBCAE0ZNjbjXSbYADRc9Zh1fy/53xJzgKC57dQnFDrnEsGlwRkrv5lQK+3Dw7ktd48pQe8C3c2LNZn052gaR0TxxzDBAyvG4nmeA17wYMvZk7UhfKYVdqUjNqwyjktvWQQDOAtWL7OrlBNfWyf5bEn1RsfsnZ7lX/3uTj1z2fQeaYcx29goSo6y7cemz+UFsuoG3ggMuD1V81xkLI82WglYnbDEd7wij5kj1+/YAliiiZtO98kLUXbyPKWq0ycmPjj1PKyiX1Gk4LMtPfvDEIdhm/uShCY+6PrOxnGPAEd+gKgA8kAdhkuZ1/IZjkbz0dQpoZgJse7V71x+cop8fvHsuFUcj/irk4qzfVkfhnKuNpMtq2z6HDvQ/GDkZKUTkNaok8rWGFGhE8TiXCoaEoWUASEQcqouQY8KHjqQT6JVgKLwsoPuA34Pb5Fb6tbFzrNT5QE7GTeoVa9GPXJ3IrKepdcRAo3I8GVEyH0rWItdWBH0tU7fo=
file:
- ./src/main.pdf
- ./src/mwe.pdf
skip_cleanup: true
on:
tags: true
10 changes: 0 additions & 10 deletions 4-texlive/.travis.yml
Expand Up @@ -16,13 +16,3 @@ script:
- texliveonfly -shell-escape ./main.tex
# Compile twice to fix possible references
- texliveonfly -shell-escape ./main.tex
deploy:
provider: releases
api_key:
secure: GK0T9i6YKZlKmxurW4B8lkBGCfUcehODrWA8VcuUaK4CgSYaVj2BzMJj4E7pA3Ucm76bGR9l1yWYA+RHRwg0033A8Tw54hIinAcwiuXCpRwgcVkbbxK77o8Q4g0ooRPAMePtkQrjeq1JgHN2sZUZ2CixhtCDApM8H4yaQW7bb7TmBFut/9YEfiJVBCAE0ZNjbjXSbYADRc9Zh1fy/53xJzgKC57dQnFDrnEsGlwRkrv5lQK+3Dw7ktd48pQe8C3c2LNZn052gaR0TxxzDBAyvG4nmeA17wYMvZk7UhfKYVdqUjNqwyjktvWQQDOAtWL7OrlBNfWyf5bEn1RsfsnZ7lX/3uTj1z2fQeaYcx29goSo6y7cemz+UFsuoG3ggMuD1V81xkLI82WglYnbDEd7wij5kj1+/YAliiiZtO98kLUXbyPKWq0ycmPjj1PKyiX1Gk4LMtPfvDEIdhm/uShCY+6PrOxnGPAEd+gKgA8kAdhkuZ1/IZjkbz0dQpoZgJse7V71x+cop8fvHsuFUcj/irk4qzfVkfhnKuNpMtq2z6HDvQ/GDkZKUTkNaok8rWGFGhE8TiXCoaEoWUASEQcqouQY8KHjqQT6JVgKLwsoPuA34Pb5Fb6tbFzrNT5QE7GTeoVa9GPXJ3IrKepdcRAo3I8GVEyH0rWItdWBH0tU7fo=
file:
- ./main.pdf
skip_cleanup: true
on:
tags: true
branch: master
11 changes: 8 additions & 3 deletions README.md
Expand Up @@ -131,6 +131,7 @@ Want this? Instructions [below](#tinytex).
* If you want to use biber, you can use `tectonic --keep-intermediates --reruns 0 main.tex; biber main; tectonic main.tex`
* Commit and push, you can view your repositories at [travis-ci.com](https://travis-ci.com/).
* For deploying to GitHub releases, see the notes [below](#deploy).
* Have a look at the [Tips](#tips).
* If your build doesn't start, see [Troubleshooting](#troubleshooting).

## <a name="tectonic">Instructions for building with Miniconda and Tectonic</a>
Expand All @@ -140,6 +141,7 @@ Want this? Instructions [below](#tinytex).
* Copy [`2-tectonic-miniconda/.travis.yml`](2-tectonic-miniconda/.travis.yml) and specify the right tex file in the `script` section in `.travis.yml`. You can uncomment the `makeindex` line and the extra `tectonic` call if you want to use an index.
* Commit and push, you can view your repositories at [travis-ci.com](https://travis-ci.com/).
* For deploying to GitHub releases, see the notes [below](#deploy).
* Have a look at the [Tips](#tips).
* If your build doesn't start, see [Troubleshooting](#troubleshooting).

### <a name="biber">Separate instructions for adding biber to your Miniconda and Tectonic setup</a>
Expand All @@ -164,6 +166,7 @@ tectonic ./main.tex
* Add all the required LaTeX packages to the `packages` option, by checking at https://www.ctan.org/pkg/some-package to see in which TeX Live package it is contained (which may be different than the LaTeX package name).
* Commit and push, you can view your repositories at [travis-ci.com](https://travis-ci.com/).
* For deploying to GitHub releases, see the notes [below](#deploy).
* Have a look at the [Tips](#tips).
* If your build doesn't start, see [Troubleshooting](#troubleshooting).

## <a name="pdflatex">Instructions for building with pdflatex and TeX Live</a>
Expand Down Expand Up @@ -212,6 +215,7 @@ Note that sometimes `tlmgr` selects a broken mirror to download TeX Live from, s
* Specify the right tex file in `.travis.yml`.
* Commit and push, you can view your repositories at [travis-ci.com](https://travis-ci.com/).
* For deploying to GitHub releases, see the notes [below](#deploy).
* Have a look at the [Tips](#tips).
* If your build doesn't start, see [Troubleshooting](#troubleshooting).

## <a name="deploy">To automatically deploy pdfs to GitHub release</a>
Expand All @@ -223,7 +227,6 @@ We will add a configuration to the `.travis.yml` such that a pdf will be automat
* (Windows) [Download ruby](https://rubyinstaller.org/downloads/) and at at end of the installation make sure to install MSYS including development kit.
* Run `gem install travis --no-rdoc --no-ri` to install the Travis Command-line Tool.
### For every new project
* Remove the `deploy` section in the `.travis.yml` or use `--force` in the next command.
* Go to the directory of your repository, open the command prompt (Windows: <kbd>SHIFT</kbd>+<kbd>F10</kbd> <kbd>W</kbd> <kbd>ENTER</kbd>) and run `travis setup releases --pro`. Specify your GitHub credentials, and fill in anything for File to Upload.
* Replace everything below your encryped api key with (changing the path to your pdf file, probably the same folder as your tex file is in)
```yml
Expand All @@ -237,6 +240,9 @@ We will add a configuration to the `.travis.yml` such that a pdf will be automat
```
* Commit and push.
* If you are ready to release, just tag and push.

## <a name="tips">Tips</a>
* You can tell Travis to skip the build for a certain commit by prefixing the commit message with `[ci skip]`.
* If you want the badge in your readme, just copy the code below to your readme and change the links.

Markdown:
Expand All @@ -249,7 +255,7 @@ reStructuredText:
:target: https://travis-ci.com/username/reponame
:alt: Build Status
```
* Probably you want to edit settings on Travis to not build both on pull request and branch updates, and cancel running jobs if new ones are pushed.
* You may want to edit settings on Travis to not build both on pull request and branch updates, and cancel running jobs if new ones are pushed.

## <a name="troubleshooting">Troubleshooting</a>

Expand All @@ -259,7 +265,6 @@ You can also manually trigger a build there.
If you do not understand why your build is failing, it may help to run the relevant commands on a local Ubuntu system, if you have one.

## Notes
* You can tell Travis to skip the build for a certain commit by prefixing the commit message with `[ci skip]`.
* There are much more CI services than just Travis, for example CircleCI or SemaphoreCI and [much more](https://github.com/ligurio/awesome-ci). If you manage to use one of them, it would be great if you could report back!

I also put some of these instructions on the [TeX Stackexchange](https://tex.stackexchange.com/questions/398830/how-to-build-my-latex-automatically-with-pdflatex-using-travis-ci/398831#398831).
Expand Down

0 comments on commit ce9587c

Please sign in to comment.