-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
45 lines (45 loc) · 2.32 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
41
42
43
44
45
language: node_js
node_js:
- '6'
services:
- mongodb
cache:
directories:
- node_modules
before_install:
- npm i -g npm@5
before_script:
- npm run sass
- NODE_ENV='ci' npm start &
script:
- npm run test:ci
- npm run mock &
- npm run test:acceptance
after_success:
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
- export GIT_TAG=build-$TRAVIS_BRANCH-$(date -u "+%Y-%m-%d")-$TRAVIS_BUILD_NUMBER
- echo -n $GIT_TAG > version
- git commit -m "Set build version number" version
- git tag $GIT_TAG -a -m "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
- git push --quiet https://[email protected]/UKHomeOffice/evw-self-serve $GIT_TAG
> /dev/null 2>&1
branches:
except:
- "/^build-[0-9a-z\\-]*/"
addons:
apt:
packages:
- rpm
deploy:
provider: releases
api_key:
secure: FaBbqufsFxxw1vWNO1ybxuQn9fG0NjacI6UpZHxI9VdHtyLf5T19HuKGmmQBNWRyZ6H21s+Tnm9E/Pd+q3RuJCXuhGf+cKZ7U5tg6OsaG9IPIAkSYUrtgH/dO2Z9fwkR4OSYCDnZgOjYMAqNGZ1gu1cmOv8DxaQo7N+sD1NRIt6VIVdNRLfjXS7DKO7HZLbF78pw9DbPYEMeKTw2XoHpfU1lnM+dMvj00rUhiy8TkmeEIQOwCNhBMnAAE2GZ+7byjWX2Sia1i/aakbm3/trCR4ptI6ruEsdMRrt5zg29pYgmLP+wRW7dyy2REqg/CIixMgwEsersxjOSUqrrKAjSlgzNNS3JkUsegSWTvErbP1b2xvGFmGOKvAf2ie6tNWb5eil6TmnH+XNk4AQSSfzOWM08h8xuH1U2TNz7T410xjB2HXbuiYm+fPJXuZh5ojdQS8t0vxcxCgeHY6d7f6gzCyC2j+x7/I7xq+fWU5mctNgmEYWzf4uMK51EyVgppDM1V8jb/OM6TP4zqn1/ze5pLyYkldTIhcqO7S3tKieKVvENvHg1mGqmvFxVjGTu2b9mCeWZV3Cf71rUpYdhKpODlzPFNqtRGnFM9vPLe9NBxi4rAmO9HdFkywtrzkSadlKtq5tSxcosbOpSmOQNTKDxT4GNg34CDqjywlWZ3XJgYYc=
skip_cleanup: true
on:
repo: UKHomeOffice/evw-self-serve
branch: master
all_branches: false
notifications:
slack:
secure: "L72c2eUbeBM5iaMTfxg9jx2nSQNjWxoBHhjT16whyakQZ1C0JqymtLC2y3MoiOoi59cT6WGa0X9jUdKhvygrUccJAmKlEfSUM60pCXBasXd6UHnbu/fBUXuGCumHGzm/VbsEaLGoMw3OUK8J+yxrYQtl4Zd6vfeaLy7Xq76Wkt5imwTyYCQ61wMbKkvXFIqCdTOZAxd4CSBVLf809tg3ULX5DgF6FjxO8R8uSUdztzFBwD2oAylLOZA0QbfiU7Fd0xYI+i3huxNSSSE8sT8ZpZ9YkHkJ4ChF6uQtWfGm2t+v0xwVCdBwIqyiCaZ+nlIC+a6nD19a4iBKyR47nE3TJh8YODBbvC/sVmY4TOLfIah+brGYUCUIMTPFAF7u7keyOqfZWM7JCJM6257rZfHewXr8NR7I2TEAdLAzEpDTpvSqcebNmGG4P3mJdaDaa2tTJtszZT3QFFb1qRkQ08yqRANlOGHRDRlzI5ucxGshTtx/OH295Te7FQzKb3k7mq90jT/lkRrPlySgejPCgUllkTtVG3pgPxbW1Yclgw5ImgyhSqEr1NrPIc1dH/7izxGYA3Y9oeZ1G7C/Vm2EsKnsr7E+R3LAGQcyHWc8m1SMG6CLAgS7u9lOLXEEAdsL2OIMerC9qksoIHmkYBdb8e84wQCZu+K/6OHPff8jbKg0/gs="