-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (39 loc) · 935 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
language: generic
script:
- if [ "$TRAVIS_BRANCH" = "dev" ]; then ./gradlew buildDev; fi
install:
- nvm use 11.0.0
- npm --version
- node --version
- ./gradlew build
- git clone https://github.com/ParNote-App/ParNote-UI.git parnote-ui
- cd parnote-ui
- npm install
- npm run build
- ls -a
- ls ..
- cp -avr public ../public
- cd ..
- rm -rf parnote-ui
- ls -a
- ls -a public
before_deploy:
- git config --local user.name $GITHUB_USERNAME
- git config --local user.email $GITHUB_EMAIL
- export TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)}
- git tag $TRAVIS_TAG
deploy:
- provider: heroku
skip_cleanup: true
api_key: $HEROKU_API_KEY
strategy: api
app: parnote
on:
branch: master
- provider: releases
api_key: $GITHUB_API_KEY
file: "ParNote-1.0-all.jar"
on:
branch: dev
skip_cleanup: 'true'
prerelease: "true"