-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (39 loc) · 840 Bytes
/
.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
os:
- linux
language: node_js
node_js:
- 10
env:
global:
- CYPRESS_DB_HOST=0.0.0.0
- CYPRESS_DB_USER=travis
- CYPRESS_DB_PASS=
- CYPRESS_DB_DATABASE=test
- CYPRESS_DB_PORT=5432
- CYPRESS_TRAVIS=yes
- VERSION=0.44
sudo: required
services:
- postgresql
- mysql
cache:
directories:
- ~/.npm
- ~/.cache
install:
- npm ci
before_script:
- ifconfig
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
- psql -c 'create database test;' -U postgres
- wget -q https://github.com/hunterlong/statup/releases/download/v$VERSION/statup-linux-x64.tar.gz
- tar -xvzf statup-linux-x64.tar.gz
- chmod +x statup
- sudo mv statup /usr/local/bin/statup
script:
- statup version
- cd $HOME && statup > /dev/null &
- sleep 10
- npm run test
after_success:
- /bin/bash -c ./release.sh