-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
49 lines (49 loc) · 1.4 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
39
40
41
42
43
44
45
46
47
48
49
language: go
dist: trusty
go:
- 1.7
addons:
firefox: "46.0"
services:
- mysql
branches:
only:
- master
before_install:
- nvm install 7.7.2
- nvm use 7.7.2
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- mysql -e 'CREATE DATABASE test_db;'
- sudo update-java-alternatives --set java-8-oracle
- wget http://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.1.jar
- java -jar selenium-server-standalone-2.53.1.jar &
install:
- go get -v github.com/revel/cmd/revel
- go get -v github.com/revel/revel
- go get -v github.com/revel/cron
- go get -v github.com/revel/revel/cache
- go get -v golang.org/x/crypto/bcrypt
- go get -v github.com/go-sql-driver/mysql
- go get -v github.com/jinzhu/gorm
- go get -v github.com/tebeka/selenium
- go get -v github.com/fatih/color
- go get -v github.com/tealeg/xlsx
- npm install
before_script:
- export PATH=$HOME/gopath/bin:$PATH
- cd $HOME/gopath/src/github.com/rtm7777/rozklad_cdtu
- npm run copy
- npm run build
- npm run build_less
script:
- revel test github.com/rtm7777/rozklad_cdtu
- cd $HOME/gopath/src/github.com/rtm7777/rozklad_cdtu
- npm run test
# deploy:
# provider: heroku
# api_key:
# secure: pLYNpj7KMgSG56Hg8YFHrdcXt0YALJphvcaLeMmrRElrcL9BLbDTb85YWMRxfc2jkVHFCYMc6/iTY23OY30WdMY/Qr3KPMDdufFjvOu+/y2oT6ghyFWN8Y2TDwiHdbII+bdMPvhFOcyQvZLAMkzphZdMzaNeXuU8e2jlEtcCobo=
# app: rozkladchdtu
# on:
# repo: rtm7777/rozklad_cdtu