-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcircle.yml
57 lines (54 loc) · 2.01 KB
/
circle.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
machine:
node:
version: 8.9.1
dependencies:
override:
# - if [ ! -f ~/.meteor/meteor ]; then curl https://install.meteor.com | /bin/sh; fi
- curl https://install.meteor.com | /bin/sh
# - touch ~/.meteor/packages/meteor-tool/1\.4\.3_1
- npm install
# if any project packages were updated, this will download and install them
- meteor list
cache_directories:
- "~/.meteor"
# - "~/paratii-player/node_modules"
test:
pre:
- google-chrome --version
- curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- for v in $(curl http://archive.ubuntu.com/ubuntu/pool/main/n/nss/ | grep "href=" | grep "libnss3.*deb\"" -o | grep -o "libnss3.*deb" | grep "3.28" | grep "14.04"); do curl -L -o $v http://archive.ubuntu.com/ubuntu/pool/main/n/nss/$v; done && rm libnss3-tools*_i386.deb libnss3-dev*_i386.deb
- sudo dpkg -i google-chrome.deb || true
- sudo dpkg -i libnss3*.deb || true
- sudo apt-get update
- sudo apt-get install -f || true
- sudo dpkg -i libnss3*.deb || true
- sudo apt-get install -f || true
- sudo apt-get install --only-upgrade lsb-base
- sudo dpkg -i google-chrome.deb
- google-chrome --version
override:
- sleep 10
# unit-tests stopped working becuase they give no output - commented to not hold up meteor upgrade (we might phase them out as we are not really using htem anyway)
# - TEST_BROWSER_DRIVER=nightmare meteor test --settings settings-dev.json --once --driver-package dispatch:mocha --port 9999:
# timeout: 1020
- npm run dev-concurrently:
background: true
- sleep 60
- npm run chimp-test
- npm run lint
# post:
# - pkill -f meteor
deployment:
production:
branch: master
commands:
- ./deploy.sh production:
staging:
branch: dev
commands:
- ./deploy.sh staging:
notify:
webhooks:
# A list of hook hashes, containing the url field
# gitter hook
- url: https://webhooks.gitter.im/e/9facb9efda66adc53234