-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
48 lines (43 loc) · 1.46 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
43
44
45
46
47
48
box: node:6.3.1
# Build definition
build:
# The steps that will be executed on build
steps:
# Installs global dependencies for build tools and such
- script:
name: Install Webpack & WebPack Dev Server & Karma & Protractor
code: |
sudo npm install -g webpack
sudo npm install -g webpack-dev-server
sudo npm install -g karma-cli
sudo npm install -g protractor
# Installs all Dependencies. We cannot use npm-install as it ignores dev-dependencies
- script:
name: Install Dependencies
code: |
npm install
- script:
name: Build using Webpack
code: |
webpack --progress --profile --bail
# Runs Unit Tests
- npm-test
# A custom script step, name value is used in the UI
# and the code value contains the command that get executed
- script:
name: echo nodejs information
code: |
echo "node version $(node -v) running"
echo "npm version $(npm -v) running"
trigger_docs:
steps:
- script:
name: Trigger docs collector
code: |
curl -H "Authorization: Bearer $WERCKER_TOKEN" \
-H "Content-Type: application/json" \
-X POST \
-d "{\"pipelineId\":\"5885d76e50c9930100a025f4\"}" \
--retry 2 \
--retry-max-time 15 \
-- "https://app.wercker.com/api/v3/runs"