-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.travis.yml
31 lines (31 loc) · 2.05 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
language: node_js
dist: precise
node_js:
- '6'
addons:
postgresql: "9.5"
services:
- postgresql
before_script:
- psql -c 'create database nanocloud;' -U postgres
- psql -c "CREATE USER nanocloud WITH SUPERUSER PASSWORD 'nanocloud';" -U postgres
- curl -fsSL https://golang.org/dl/go1.6.3.linux-amd64.tar.gz -o golang.tar.gz
- echo "cdde5e08530c0579255d6153b08fdb3b8e47caabbe717bc7bcd7561275a87aeb golang.tar.gz" | sha256sum -c -
- sudo tar -C /usr/local -xzf golang.tar.gz && rm golang.tar.gz
- sudo mkdir -p /go/src/github.com/Nanocloud/nanocloud/plaza
- sudo mount --bind plaza /go/src/github.com/Nanocloud/nanocloud/plaza
- export GOPATH=/go
- cd /go/src/github.com/Nanocloud/nanocloud/plaza && ./install.sh
- sudo cp -nr /go/src/github.com/Nanocloud/nanocloud/plaza/vendor/* /go/src/
- cd /go/src/github.com/Nanocloud/nanocloud/plaza && GOOS=linux GOARCH=amd64 ./build.sh
- sudo /go/src/github.com/Nanocloud/nanocloud/plaza/plaza &
- sudo PLAZA_PORT=9091 /go/src/github.com/Nanocloud/nanocloud/plaza/plaza &
- cd /home/travis/build/Nanocloud/nanocloud
- npm install
- cd assets && npm install && bower install && ./node_modules/ember-cli/bin/ember build --environment=production && cd ../
- export COVERALLS_SERVICE_NAME=travis-ci
script:
- npm test && cat /home/travis/build/Nanocloud/nanocloud/coverage/lcov.info | coveralls
notifications:
slack:
secure: VSXk/aqStX0JKbSHXmAngv9HMuTm8j4XG/vnbZNL6i1QnKIkvuAauDuk2c/GPzVzXfXubZjAkfHhX9JgxBSFW/NKV6gjAS1bfsHMx65yKREZrwx4VVwTM8GAjYANDeDp/7xw3Bk6o9GpkGxuIA4aKn8G0HdSE1YioCYMZc4UAqnbkbR8b0xMnuYP3zzaHjDMsL+NWz9gkitp5EsX3r0TpT/Gwu+5k//zPbIuDeudvD1jY7F8HQ6akuItrAlFVULJ4RlB/OlZ+yPusVi5TS0FIXgbNaiK6rkWoi5BIQBki5bLsy9qLWR6Sng4JEG31vSrMHRQnrZNQ9OiF3E8AjGbn6m/vdPYYlMw0V393N22zxa/XvdYVejYHGx96QfSart2faMrp38oHerpInRo5oz2OJKaLMJZRfL3h2rG+S7lynMLQaNVkOijub8q8Ze9G3NCx+dkIEteLwTD0A07N0vKNyhkYzSsbU+m8wWNBKSLTSGUZ5XfHAdJFcA3GKuDZ5sftMVQvHgufOffqWySN/d2EWwaTy2lqWla7X4fyrybdD5ujuYRLcOsPE2R85JAHYuHi2fCPjgG9OMjbO20vBTlH1IHc0ZzNTXM07yKLe+Xntu64F8pQZvvY26Qwwrd3qO136NQxOd52FR6332Faj1dca3VaqY6NOFAo1u7SLA+XY0=