This repository has been archived by the owner on Aug 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.wercker.yml
42 lines (34 loc) · 1.94 KB
/
.wercker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright © 2019-2020 Brandon Li. All rights reserved.
#!————————————————————————————————————————————————————————————————————————————*!
# Entry point for https://app.wercker.com/. Instructs wercker to check that
# every branch passes linting and testing, activated on every commit. For more
# documentation, see https://devcenter.wercker.com/.
#
# Note: This file was auto-generated by `grunt generate-wercker`. It is not
# recommended to modify this file. For more information, see
# https://github.com/brandonLi8/grunt-config/.
#
# @author Brandon Li <brandon.li820@gmail.com>
#!————————————————————————————————————————————————————————————————————————————*!
box: node # Use the default Node.js container.
build:
steps:
- script: # Install Node.js
name: Install Node.js
code: |
npm cache clean --f # Clear all data from the npm cache.
npm i # Install dependencies.
echo "node: $( node -v )" # Display the Node version.
echo "npm: $( npm -v )" # Display the npm version.
- script: # Install grunt globally.
name: Install Grunt
code: npm i -g grunt-cli
- script: # Run testing commands.
name: Continuous Integration
code: |
grunt eslint --no-cache # Ensure all source code is lint-free.
grunt check-copyright # Ensure that all source code copyright
# statements are correct.
npm test --if-present # Ensure that project-defined tests pass.
- script:
code: echo "Bye!"