/
.travis.yml
49 lines (48 loc) · 1020 Bytes
/
.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
46
47
48
49
language: node_js
node_js:
- "9"
dist: trusty
cache:
directories:
- front/node_modules
- back/node_modules
branches:
only:
- master
before_script:
- npm install -g @angular/cli
script:
- pushd front
- npm install
- ng build --prod
- popd
- zip -rq front.zip front/dist/ledwallapp
- pushd back
- npm install
- popd
- zip -rq back.zip back
before_deploy:
- export TRAVIS_TAG="1.0.$TRAVIS_BUILD_NUMBER"
- echo "$TRAVIS_TAG" "$TRAVIS_COMMIT"
- git config --local user.name "louisthomaspro"
- git config --local user.email "louisthomas.pro@gmail.com"
- git tag "$TRAVIS_TAG" "$TRAVIS_COMMIT"
deploy:
provider: releases
tag_name: $TRAVIS_TAG
target_commitish: $TRAVIS_COMMIT
name: $TRAVIS_TAG
overwrite: true
skip_cleanup: true
api_key: $GITHUB_TOKEN
file_glob: true
file:
- front.zip
- back.zip
- driver/LedWall_Middleware/bin/Debug/LedWall_Middleware
on:
branch: master
notifications:
email:
on_success: never
on_failure: always