This repository has been archived by the owner on Jul 8, 2024. It is now read-only.
forked from coding/WebIDE-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (34 loc) · 2.91 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
dist: trusty
language: node_js
node_js:
- '7'
cache: yarn
env:
global:
- COMMIT=${TRAVIS_COMMIT::8}
- DOCKER_CACHE_FILE=${HOME}/docker/cache.tar.gz
- REPO=webide/frontend
- secure: h2kes4JwzwCMmQAYPqSwgzd5skNA30G4YsoSU9HpH2emdqs8ol5ZUMCPOdIyehJgh4rL5qFezBQU4v/uyRwX+RQJIGDg4+cnAElSnnjtaoiERgEV3nnIKsr6L8ObVRSnsDybqWOQ+5OwxaZR+LJQuXC3+EQyyfyFUt9Yp87Sswxb+POFLIYfHnqbr1uceu5UG516FGQMYYmHVXRVqeG93lc0hy/IF7D7JAAM7iO1dNHzrLaKw8Nfbbt19YJPyRd+w1LbZQDgtGquGTplJS0iLWb2tEm6QVobyNzVEYw5u03IFfNYtS2c4TjNX+zfpVpJSKklfpy4nHRiZtYgkrLUTxTGyYvJakfUyjQlnEftUvFdHFUC+UCr0wlOMCo5gb9ALDh7C2BRao3CHTt9sFA7GTXB/euknV6Ke214AXOYrPQzZEzFAB5MrQkcH+2hAGpEZnhmSwtxH0SUSpnhBREkhmmOTLvlbio5PCnvhB0iFLXo4Z8KlU8kdzEcNGEmsvQW+tqV08RBsJ5YxnYZ8lumE4vTgx31OYGU0nF4YnPyhYxxddezoM1lgs6B9WQwglVrf9ZCh1KMDSwmxtouatFV0QiU1w3US/dFtb4gwkQYWLTU6FaX6XwzoM6DZMbfJ6vAjGYa8Ed8uWDMXkbZ8cvr6U4OJFDIet6TFB2QO0VWEpg=
- secure: nh7Xv2QWSJ9xoY1hM/8I/9Wc3/pGUxZ1PPMr1L5PEArZImcXazRM9y6FGFB43ItzaqEuEFhAIE8V1dZI1MS1nJXlR4IkoIz/Cw6TMiPOEDoM5JA2FizVw27n1wk7LrXPGajVIgm85cozsFWSC+lyqvv6U8cZA0lI3rUwpRJW5uGhvEYAJVPKhgm7p51h9KLh/W9wYy7dwukzjmC5K+sFC8iFCk16ro+uKsaTLnwCSmQWuwpBCkncrRySjijlaS51NAQfXV9krHCwAwSr4gMLqtT4gDkWD8TDvGXYJ7kztOBkUkALzcicZSXKXZKF0d4azTu4Xs0CcWHHepcgwwC0VJBR5fWHwtoaUwWM8QU5sSPiaOP1PuR4jv2LlNCgQ3N9Ivzvb4Dx2hoc3PxT1A2D888+E/boN+WNGWSjpFCg2uW1JfIrP7vFX7tOcX7+yy7nPG63bxc8nUpAYuT6GJTD+7uhbmBR7gn5RwTeCWd9WRJYZMCJPAfA7KzP2vUysfPnaZfWAM8sU98X28yKFGXgRsu31ohsJwMvnBBc+cf2ddaEMjNAWSZHjomZYpqOyfuhskI8KaMrt0mo3qnuIxugrvUf3BxlNCHIRePveYLZSDFVrP+lBxj0KlEFVwxNMhx7kBsg7X7E94qS4lfOpv5udX7tu3Ay2fSsYiEdA6Atch0=
before_install:
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
- if [ -f ${DOCKER_CACHE_FILE} ]; then gunzip -c ${DOCKER_CACHE_FILE} | docker load;
fi
script:
- set -e
- yarn run build
- docker build -f Dockerfile -t $REPO:$COMMIT .
- if [ "$TRAVIS_BRANCH" == "master" ]; then docker tag $REPO:$COMMIT $REPO:latest; fi
- echo $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin
- docker push $REPO
before_cache:
- set -e
- mkdir -p $(dirname ${DOCKER_CACHE_FILE})
- docker save $(docker history -q $REPO:$COMMIT | grep -v '<missing>') | gzip > ${DOCKER_CACHE_FILE}
notifications:
slack:
on_failure: always
on_success: change
rooms:
secure: eKhxCQveXWXzXJlR5gN5Ydkj5vRn7/8XUFMexUGwCIpr+jV2hFDCFUlk6hsddWwbe7A0O6Owgqza9DENws89wkTh3kodlet9jIpFcZFSeC3ggeVMG9PN1ezXuKaRyNhAMWQK7KgwzCduICWvlRntTyEf3qv5GOTnJU1kID9swibgEa0yqqSNEzUpJZEUWcTv0fgL8b/dVPnBnGqegHEMmk0aZ/J6Kafv4sOP+AUoimHtHe2aUcTWC/8L8V25iLi4Xc1YeSjepQrrz3qMUVicG0KHflUyzumtd/4FwT/XWEp4/iXPNvtSZ1W6H7waVS0mvoh8RaTxxF4fQoVxe9hc3/WqZyaWZpTSjYeh82fwfSqoqQj0Gta0X2aXrUzCNFgU9EGOg28VwrMfrTZe1/LSkeqCdiWgNK4k7WXYSZh+V0VKCqboFBVwq/9RkF4Tggu30itMYJR4HjXQJr+d8LLHJfn7tL/EUfCz1InxN3XZ6hq1beA/B4f0daLnB12YBAdyOvDwY6GKHp+QqgviTAWO6syK7ISwJqfbPZyhq/thFDYSuyBL83EEb2/62pmqItBOC9VVLVZeJzoNKLbdkPkc0+sUMyPQ4qUzzWn1s0wH5RcMuxBwXiKX0y6QTTbmBR7Q8NqQElHg8DFbn0K1DQsVJeHUgLs+gk1HKEDRbeEOO1w=