forked from EmurgoHK/cardanoupdate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (31 loc) · 1.15 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: required
language: node_js
addons:
chrome: stable
node_js:
- '8'
before_install:
- sudo apt-get update
- sudo apt-get install -y g++ build-essential
- export LC_ALL=C
- curl https://install.meteor.com | /bin/sh
- export PATH="$HOME/.meteor:$PATH"
- npm install selenium-standalone@latest -g
- selenium-standalone install
- selenium-standalone start &
- sudo mkdir -p /home/gareth/cardanoupdate_assets/static/images/ # for the image upload
- sudo chmod -R 777 /home/gareth/cardanoupdate_assets/static/images/
- sudo mkdir -p /home/gareth/cardanoupdate_assets/static/pdfs/ # for the pdf upload
- sudo chmod -R 777 /home/gareth/cardanoupdate_assets/static/pdfs/
cache:
directories:
- node_modules
- .meteor
before_script:
- meteor npm install
- meteor npm install --unsafe wdio-mocha-framework webdriverio assert
- meteor &
- sleep 300 # wait for Meteor to start, it takes some time, 5 minutes should be sufficient
script:
- ./node_modules/.bin/wdio wdio.conf.js # client side tests with wdio
- meteor test --driver-package=meteortesting:mocha --once --port 5000 # unit tests