forked from ct-js/ct-js-old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
67 lines (61 loc) · 1.5 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
65
66
67
language: node_js
node_js:
- lts/*
before_install:
- npm i -g gulp-cli
install:
- cd ./app
- npm install
- cd ./../
- npm install
stages:
- name: lint
- name: build
- name: pack
if: (tag IS present) AND (type != cron)
- name: packNightly
if: (branch = develop) AND (type = cron)
jobs:
include:
- stage: lint
script:
- gulp lint
- stage: build
name: Compile style and js assets
script:
- gulp build
skip_cleanup: true
- stage: pack
script:
- gulp -f devSetup.gulpfile.js
- gulp packages
skip_cleanup: true
deploy:
# Github Releases
- provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file_glob: true
# see at gulpfile.js > zipPackages
file: ./build/ctjs - $TRAVIS_TAG/ct.js $TRAVIS_TAG for *.zip
skip_cleanup: true
draft: true
on:
all_branches: true
# Push to comigo.itch.io/ct
- provider: script
script: gulp deployOnly
skip_cleanup: true
on:
all_branches: true
- stage: packNightly
script:
- gulp -f devSetup.gulpfile.js
- gulp packages --nightly --buildNum=$TRAVIS_BUILD_NUMBER
skip_cleanup: true
deploy:
# Push to comigo.itch.io/ct
- provider: script
script: gulp deployOnly --nightly --buildNum=$TRAVIS_BUILD_NUMBER
skip_cleanup: true
on:
all_branches: true