-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (38 loc) · 1.69 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
sudo: false
language: node_js
node_js: 10
before_install:
- openssl aes-256-cbc -K $encrypted_cc14136cad00_key -iv $encrypted_cc14136cad00_iv
-in id_rsa_deploy.enc -out id_rsa_deploy -d
- chmod 600 id_rsa_deploy
install:
- npm install -g bower grunt-cli
- npm install phantomjs-prebuilt
- npm install
- bower install
- gem install compass
- bower list
- npm list
script:
- grunt test
- grunt build
- SCRIPTS_FN=`ls dist/scripts/scripts*.js`
- sed "s/WENFO_GOOGLE_MAPS_API_KEY/$GOOGLE_MAPS_API_KEY/g" < $SCRIPTS_FN > tmp
- mv tmp $SCRIPTS_FN
deploy:
- skip_cleanup: true
provider: script
script: cd dist && scp -o StrictHostKeyChecking=no -i ../id_rsa_deploy -r . [email protected]:/home/$FTP_USER/public_html/ausenv/staging
on:
branch: master
- skip_cleanup: true
provider: script
script: cd dist && scp -o StrictHostKeyChecking=no -i ../id_rsa_deploy -r . [email protected]:/home/$FTP_USER/public_html/ausenv
on:
branch: production
notifications:
email: false
slack:
rooms:
secure: HQRnvE4qt9ksg3uiJP/t7W3wM+yZsrkDBIjrsFW1BlenWfglFvXafb0sFuW4VtsOLra0pDqTaGy6uwrs21YvmilN4U2zS3opco1KIFR/3W/PWeROuOQVuJFIP/8AE21pEP66w7ebWZmpAnf3JGqrKroImmX1OqadWTIBunzEPz97MXkMAwXpviMHNVFPCuyft/4OZr8l3N+i9UvlFERNCvbkCZNmhKiuGtalAsqTC/BTSUYTBov9/PwL8ELucvquHPQXejcOo9HrBMK2arMyqmgjXhXif3DUldZNy4PmD7nPP6hzDCSKEMVJH1x3DTqBBGc5BHsghc4XD9aY4IZCachZkb4bCA1eAeMrR0z43e0YsA0alWWQskTArerC3Ex5Ci5Ny7X6zld2iKdFU7oBNR0zHUDcOMa7yI9lhJF1cya5tNOURRPnoj1jvCiOnAkDQqC1RPl68tjajxJeJSllSeP4HiOYvVVWKwZxXs6J1RcRsTVxIpB5CeR5uoglCC3drcU98+LLJL3ydEn7feKfXTcbrSX1tgjfJJ1PXZTgGXimahaZFqNKjDxvYhtcIlAOHd/WeWnXFtzvslDzUNFmleD3a1/86S5H5BG338wdzApccKbHqi5iojQnS8iY46TODJrQlNSxkROjGFsIwsR62EpYzPadDOp325fszYKxGyA=
on_success: always