-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (40 loc) · 2.14 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
node_js:
- node
sudo: required
services:
- docker
cache:
directories:
- node_modules
branches:
only:
- develop
- master
install:
- sudo apt-get install openjdk-8-jdk
- sudo apt-get install ruby-full
- gem update --system
- gem install compass
- npm install -g grunt-cli
- npm install -g bower
before_script:
- npm install
- bower install
script:
- grunt build
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH;
fi`
- docker build -t $REPO:$TAG ./docker
after_success:
- cd docker
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker tag $REPO:$COMMIT $REPO:$TRAVIS_BUILD_NUMBER
- docker push $REPO
env:
global:
- COMMIT=${TRAVIS_COMMIT::8}
- REPO=jluccisano/nextrun
- secure: jQuHvuSxN0bxg330CWoWtiK1Iyi7IPzKb12J+pAB4jCOATBV2nVVqs4bSz3Lzs8796/+iOpdqGBebI9VwoFT4zj9cDAkBZsPxMf/bmww8AVNHfbjjoGaiafezNDU5Ct1vTxc5KgYIMGkp/Ptsb9jDsibeUabi2a6PQQxv6qAqt1Fm4KZdlt9k6YFlHVdyA6xZL7eAyVwdghxJZB3XOErHtq3Nr10kYJ+cviaimTO2/3roIqMrtZKKKqpxoIZTm3ASyxuc2CmdV4pDZKAnSIG6HpohKoT+n/IvdZ51xO29zeEitcU8n1dZdzo7xwSfcdR8+4eUZgbAAUb3d8E8kkRJEy4xbYRkToVoIBcMaZmwzv64XaNMMbjjqoGCIZm2EhNr/+A0pPcTIxhuLMGli+JBSNoRx/gKWGZ1oWgb/gSbgiJjgctIIAjP201V7lRdM8bKTAU5ySHiiZU3P647b5Aro8j6oFWoEsQP4BI7V48ICibtXHeiXE4Qp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