1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-12-26 01:13:41 +02:00
Commit Graph

18 Commits

Author SHA1 Message Date
Eric Cornelissen
f5708c980c
Update Travis CI configuration (#2536)
* Fix NPM deploy stage

* Fix Travis CI configuration file according to errors

... as seen in

- https://travis-ci.com/simple-icons/simple-icons/builds/147690404/config
- https://travis-ci.com/simple-icons/simple-icons/jobs/284138938/config

Note that `skip_cleanup` is no longer necessary according to https://docs.travis-ci.com/user/deployment-v2#cleaning-up-the-git-working-directory
2020-02-07 10:51:57 +02:00
Eric Cornelissen
c3d4155ddc CD: make email configurable so API key can be changed more easily 2020-02-06 12:36:09 +02:00
Johan Fagerberg
7b69d16efb Add CI step for ensuring alphabetical order of icons (#2334)
* Add a script for the linting that cannot be accomplished by our other linters

Currently this only contains linting for whether our icons are alphabetically sorted

* Add our own linting to Travis

* Fix Let's Encrypt being incorrectly sorted

* Intentionally break sorting to test CI

* Revert "Intentionally break sorting to test CI"

This reverts commit 55e4070b3c.

* Explain in CONTRIBUTION.md how to sort metadata
2020-01-16 12:40:46 +02:00
Eric Cornelisesn
1a116d3112 Specify "git tag" stage language 2019-08-25 23:06:08 +03:00
Eric Cornelissen
96a8ab301b Add Travis CI deploy step for release tags (#1558)
* Add sample Travis CI deploy step to tag commits on master and push that

TODO: should find the version number from ./package.json

* Get git name and email for tagging from env

* Extract current version number from manifest

Attempt...

* Update .travis.yml

Fix whitespace issue and command error

* Switch sed order and escape double qoutes

* Replace curly braces by parentheses

* Test deploy of release tag to GitHub

* Convert deploy back to script

And update actual deploy step commands

* Remove test deploy stage

* Fix api_key value and remove leftover configuration
2019-08-15 13:16:28 +02:00
Eric Cornelissen
16f3bcea12 Fix deploy failure due to missing node_modules
The deploy script failed in the last build[1] due to a missing 
dependency. Skipping cleanup prevents the node_modules from being 
deleted and the build script form failing.

I encountered this exact problem with simple-icons-font[2][3][4] and 
this fixed it.

For now I manually releaesd v1.12.0[5].

---

1. https://travis-ci.com/simple-icons/simple-icons/jobs/218315055#L547
2. https://github.com/simple-icons/simple-icons-font/pull/15
3. https://github.com/simple-icons/simple-icons-font/pull/17
4. https://github.com/simple-icons/simple-icons-font/pull/18
5. https://github.com/simple-icons/simple-icons/pull/1549
2019-07-23 07:01:11 +01:00
Eric Cornelissen
579d439e60
Lint file formatting (primarily whitespace) (#1349)
* Add editorconfig-checker and .editorconfig

* Fix wslint errors
2019-04-17 12:59:44 +03:00
Eric Cornelissen
112b78f48c
Update Travis CI build (#1348)
* Remove xmlstarlet from Travis CI "Lint" build

With https://github.com/birjolaxew/svglint/pull/6 merged some time ago, 
we no longer need xmlstarlet to verify that SVGs are valid XML. 
Essentially reverting the changes in #1112 and #1159

This should also make it easier for contributors to reproduce the build 
on their own machines, specifically if they don't use Linux.
2019-04-17 12:41:37 +03:00
Piotrek Żygieło
6409bdb648 Refine xmlstarlet options (#1159)
* print verbose error messages on stderr

* list only files which do not validate
2019-01-07 22:18:22 +01:00
Piotrek Żygieło
eb6fc0b3ce With bad xml travis should fail the build (#1112)
* With bad xml travis should fail the build

* Validate SVGs for being well-formed XMLs
2018-12-13 18:50:42 +01:00
Eric Cornelissen
046c5e8b45 Add "pretest" and "posttest" scripts 2018-09-11 13:32:16 +03:00
Eric Cornelissen
e6485072d2 Test the NPM package (#972)
* Implement basic test for the NPM package

Just an initial test suite that checks if all promised imports actually 
exist. The testing framework Jest was chosen because of it ease of setup 
and use.

* Implement exhaustive tests of properties for each icon
2018-09-09 21:58:53 +02:00
Eric Cornelissen
e414adecc9 Update the travis build to work in stages (#948)
* Update the travis build to work in stages

* Intentional "Build website" error

* Intentional "Lint" error

* Restore CI test errors

* Conditional deplay stage, only on master

So PRs targetting develop don't run an empty stage.

Related Travis Documentation:
https://docs.travis-ci.com/user/conditional-builds-stages-jobs/
2018-08-27 17:39:13 +02:00
Johan Fagerberg
289d1883a1 Add SVGLint (#922)
* Added SVGLint

* Added SVGLint to CI

* Upgraded Node version used by CI

* Upgraded SVGLint to latest version

* Moved SVGLint configuration file

* Upgraded SVGLint

1.0.1 -> 1.0.2
Adds support for globs on Windows

* Added SVGLint check for aria-labelledby and title ID
2018-08-16 11:33:32 +02:00
Eric Cornelissen
06a743b4ac Use matrix to split NodeJS and Ruby builds 2018-08-01 13:02:56 +02:00
Eric Cornelissen
e6263f703d Add page buid to CI script 2018-08-01 12:43:58 +02:00
Johan Fagerberg
7413e63a0c Add NPM publishing through Travis 2017-09-19 15:09:16 +02:00
Eric Cornelissen
b194931025 Add NPM script Travis configuration for jsonlint 2017-09-11 21:56:40 +02:00