-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
64 lines (62 loc) · 1.47 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
dist: xenial
language: node_js
node_js:
- 10
services:
- mysql
addons:
apt:
packages:
- libgconf-2-4
cache:
directories:
- $HOME/.npm
- $HOME/.cache
- $HOME/.composer/cache/files
stages:
- tests
- build
- name: deploy
if: branch = master
# Default steps within each job
before_install:
- mysql -e 'CREATE DATABASE IF NOT EXISTS strong;'
- git clone "https://github.com/UnicornGlobal/strong-lumen" --branch=master ../strong-lumen
- cd ../strong-lumen
- cp .env.example .env
- composer self-update
- composer validate --no-check-all --ansi
- composer install -n
- php artisan migrate
- php artisan db:seed
- pwd
- touch ./storage/logs/lumen.log
- sudo chmod 777 ./storage/logs/lumen.log
- nohup php -S 127.0.0.1:8000 -t public &
- cd -
install:
- cp config/secrets.env.example.js config/secrets.env.js
- npm install
jobs:
include:
- stage: tests
name: "Unit Tests"
script: npm run unit
after_success:
- codecov test/unit/coverage/lcov.info -t ${CODECOV_TOKEN}
- echo "Done"
# - stage: tests
# name: "Cypress Tests"
# script:
# - ./scripts/setup_environment.sh
# - ./scripts/setup_cypress.sh
# - nohup npm run dev &
# - sleep 30
# - $(npm bin)/cypress run
- stage: build
name: "Build"
script: npm run build
- stage: deploy
name: "No Target"
before_install: true
script: echo "Add deployment settings!"