Last active
June 16, 2018 22:27
-
-
Save MushuLeDragon/fd0846eea61ce4ceb3a7098e6d405fc8 to your computer and use it in GitHub Desktop.
How to configure a TravisCI file .travis.yml linked to the project : https://github.com/poudre-aux-yeux/mon-arbitre-raquette
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: node_js | |
node_js: 9 | |
before_script: | |
- yarn | |
- yarn lint | |
- yarn unit | |
script: | |
- yarn build | |
# On place les fichiers build dans un zip | |
# zip -r(le dossier et son contenu) [le nom du fichier qui va être créé distp.zip] [dossier ou fichier à zipper] | |
- zip -r mon-arbitre-raquette dist | |
deploy: | |
# déploiyer vers ce que je veux : ici les github releases (ca peut etre google cloud storage...) | |
# https://docs.travis-ci.com/user/deployment | |
provider: releases | |
# Ne pas oublier de setup la $GITHUB_API_KEY | |
# https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/ | |
# Ajouter la clé générée à Travis dans "Environnement Variables : GITHUB_API_KEY // [Numéro de clé généré]" | |
api_key: $GITHUB_API_KEY | |
file: mon-arbitre-raquette.zip | |
# skip_cleanup : permet de ne pas supprimer lesip du script (après avoir exec le script il supprime tout d'habitude) | |
skip_cleanup: true | |
# deployer que s'il y a un tag qui a été fait | |
on: | |
tags: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment