-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
32 lines (32 loc) · 1.12 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
language: node_js
node_js:
- node
notifications:
email: false
install:
- npm start
script:
- cd nin/backend && ../../node_modules/.bin/eslint .
- cd ../frontend && make lint
after_success:
- export PACKAGE_VERSION=$(node -p "require('./package.json').version")
- export LATEST_TAG=$(git tag | sed 's/^v\(.*\)/\1/' | sort -g | tail -n 1)
- git config --local user.name "Travis"
- git config --local user.email "post@ninjadev.org"
- git tag v$PACKAGE_VERSION
before_deploy:
- cd $TRAVIS_BUILD_DIR
deploy:
- provider: npm
skip_cleanup: true
email: post@ninjadev.org
api_key:
secure: iWwXLzno47upqZ0qETbuc+sWEDf9drr/KYulsjWJMCuTdeWj4HuF4NcMSENR43ngeEBO34+NxiAjC0yKe+qPJ6bmq06fYPjobPHUhI9tfWRUsuxxkxhZUnTsR2FaOz7vVe1GTECcqKtR1OAeJH7IPWvanKHNMOyXjUrvSKWPtmo=
on:
branch: master
condition: "\"$PACKAGE_VERSION\" != \"$LATEST_TAG\""
- provider: releases
api_key:
secure: "HTbYTMO/Me+AlcGfh2+1UMUSvirmnLHn940VzyzYhJT15HEHGLPl/m9f8+JuWSJs27twdMG2/DDWc5A6FypaiATA3hUaymfgsjKkOW7ozaQ4dV+Fw9lo/DsqbP+mlMRwMIL5+FawCJzgIcHUxytzwFxb+GfIoIfT72vjWiaGTUM="
name: v$PACKAGE_VERSION
skip_cleanup: true