forked from alphagov/govuk-design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (33 loc) · 2.28 KB
/
.travis.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
language: node_js
script:
- npm run lint
- npm run build
sudo: false
env:
global:
- CF_API="https://api.cloud.service.gov.uk"
- CF_ORG="govuk-design-system"
- CF_SPACE="production"
- CF_USERNAME="design-system-deploy-production@digital.cabinet-office.gov.uk"
# CF_PASSWORD
- secure: UYvRRq3/WSAF5udIroJRoN0i4ha04K9tWf5ozXAidP9oF1o3kAdz7dMlb/UWE10KCki8WwYSKufsJknSC7yygg6BgkajpUFWZc36XWUgyIlXEti3kxjq8GhHUtVQpdH/Mp702DgzJCgA4Bwj9TlfkyP+PIYW4PfljRllJtPzqgxSur++23Q+kMmvA8T/GOEyab72ZjEMQmonl0Vxf6UWx/y7/4+XLj34OTzoYQ18utWfH9o9i1KUA8dYFCT3oCauGXF8Ra6iOPmNhBjvKrT9+foyYvfbwtL+o+tcbyBQM+p2toWUC2E5e+gIyed+woNnUMFGjGzkwzRe5evhH7RbssGMnkAHn19EGht+Ycdo5Wqh06kmb6sGVFa5EfvuX8AUHaOJrjBjS4ojHA9rmrkCrLvXpKECJi/NK2if5mk39ULtmtUzBBAjgPY3ZY34wweKrRgKz1Q2+Z59nJuX4/UM/KP3lrG0IWKIqdcrnoRaXsWADmf512zFw699+3rre6Bv7h08cyJZWAPWFhZiFibFOQXpT7uVeGyF2VcNrDjVzOiUFOWb7+5IRLi3Volp9o5OHuH1aOw3vNb2KqbIvJAFcQJF4l7c8Jopp6obeyBtXsupAVOTKZQnc9rokwDvyLbCNfseXXWNPekRD9+Ey8asSM+NauWLASFIWxNrRj6M5m0=
# NPM_TOKEN
- secure: "pfovyWN6ILBR8Lpxi3QSWfDuVmDKWC2G+/7hyFGDkY3tjiiAwMNrp/i1NXxcbTzMkPGrzszYIhg2b9VaMUFUamrgYHGuI7YVXBsLPC8nc17Bxx8DHAeGwVf4zxCvgZw7FmTbTt0GURmNfd7TQUUKwATEme/RVGi+c3SLLxE3+6s53if5dzI0uccR6uK2KhvfZ0nXSIBMM5/sQah69vxVD4hVI6jjcRCXxvs5ZpnQqe9LO3mGO4SGmq8Gt4ZPKbKUhDIhNJzS5IUNjXxtS9/Z2SyxfqacYMIScCke/Mw5GBG9mT4bgGSBjFm3/HJjrYqJrZLmcxLqtIdbiM+6X+oTmlocn7l5txayxO4mSqsK6fZwPZNc36seJsWaF5gd6QWOaz4Vqb232Kiqu9h9eTsweO3BAvABQyDVpuNzrkbYGTn3rEM2GKctjtaH7xOoiXXL5eBekeqxbPhpIijRfm5+O30S5ays/e1fDoWp6MuME9oX+yv2Sq1jcdYX83lIWczz+4NViFzRM28U39UYISpM3G8ukmmk02+F4x1tLCXxzgKfPAyWc4YoqexYSEQIX7a88HytIJtZB17Xd8EjzX2YeLZlq0oswIS7tTVfZ/cS2vQ2vTRyqjSWoCl2cv/aJJLRWc8Tih7t+tklm+NlxIy8iOVsKrvvPhAzIFBfDYoTxYI="
before_install:
- if [[ `npm -v | cut -d. -f1` -lt 5 ]]; then npm i -g npm@latest; fi
- npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
install:
- npm install --no-optional
before_deploy:
- export PATH=$HOME:$PATH
# Install CloudFoundry
- travis_retry curl -L -o $HOME/cf.tgz "https://cli.run.pivotal.io/stable?release=linux64-binary&source=github"
- tar xzvf $HOME/cf.tgz -C $HOME
# Install Autopilot plugin for zero-downtime-push
- travis_retry cf install-plugin autopilot -f -r CF-Community
deploy:
provider: script
script: "./bin/deploy-travis"
skip_cleanup: true
on:
branch: master