-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (33 loc) · 1.94 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
dist: trusty
sudo: required
language: elixir
elixir:
- 1.4.0
# cache:
# directories:
# - _build
# - deps
# - travis_phantomjs
before_install:
- phantomjs --version
- export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH
- hash -d phantomjs || true
- phantomjs --version
- if [ $(phantomjs --version) != '2.1.1' ]; then rm -rf $PWD/travis_phantomjs; mkdir
-p $PWD/travis_phantomjs; fi
- if [ $(phantomjs --version) != '2.1.1' ]; then wget https://assets.membergetmember.co/software/phantomjs-2.1.1-linux-x86_64.tar.bz2
-O $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2; fi
- if [ $(phantomjs --version) != '2.1.1' ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
-C $PWD/travis_phantomjs; fi
- phantomjs --version
notifications:
slack:
secure: YNQQOEi2S/m0sieziFQ7okF8BjgKBGh8RwTbU3ShuHDOCo6vlTSlaRNSgl9+QwHSlPO03k3c2DS9AKeLOCSMjOJYpjH+T6TYwh0mZ/Cc9Xa8p2i2PU76c3wTrFO+L0/rqHAbLOXu/yv9udz7RXZ7gG2vAp1Cj0wPQ2TCDa4dPtTpO6WzLuhR5ANLhipRLm8vbitM32z4TNC83jMo+Qs32k/Q11yieISM1ioBTHb0aw9p2mFUak2D+MnR4wVfDI93DOe2rCpEN6DaNZSjQfPmOIclshsXoeWhWZN065kdPitn1Drlm5YogpNZi8LFrNKoqGvZihNpjaSVBqswjiQdKld310w9IyhztOhYTBvKRcIlAs9z9pmCaj83dKXbtqc/vIpfr4CuOV6jB1ot5ib4Rjd2g0UmLXFgjRIuvoYpwr77raZjNk4dtRUi4jvGD9XucRDH6AKW80IK12q+BC5o2RTxWgdwbXm8N3/kBhX2dCirm4e0mkJmd6JtqkfL74+28fKzAyVjAgqem+/9E9NBGs0/Hv8dMsYgbwfZyEssbQ2wFNP+BHdwh3vmoZhjDyKK5t0RCUzC86wJsEuLK77EX46Dvltchh2B9A7gCtuHlh7ShA14fA5VFVlEnkeM48M0EdNfZyQs4rkIOsAHw98c2KFJZJDhb6SuIBeENQoPi7M=
after_success:
- chmod 600 ~/.ssh/id_rsa
- ls -lath ~/.ssh
- ssh -o "StrictHostKeyChecking no" -q root@51.140.86.5 exit && echo $?
- git branch
- mix edeliver build upgrade --auto-version=git-revision --from=$(curl https://staging.healthlocker.uk/_version) --to=$(git rev-parse HEAD) --verbose --branch=$(git branch | grep ^\* | sed 's/* //g')
- chmod a+x .deliver/version.sh
- mix edeliver deploy upgrade to production --version=$(.deliver/version.sh) --start-deploy --verbose