forked from Shabang-Systems/Condution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (27 loc) · 831 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
language: node_js
node_js:
- stable
before_install:
- openssl aes-256-cbc -K $encrypted_02c2eef88991_key -iv $encrypted_02c2eef88991_iv
-in secrets.json.enc -out src/backend/secrets.json -d
install:
- yarn global add @ionic/cli
- yarn add [email protected]
script:
- CI=false REACT_APP_COMMIT_HASH=$TRAVIS_COMMIT yarn ionic:dist
before_deploy:
- echo "cuttingedge.condution.com" > build/CNAME
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep_history: true
local_dir: build
on:
all_branches: true
condition: ${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH} =~ ^(((\w*)-*v(\d|\.)+)|one-point-o|master)$
branches:
only:
- master
- one-point-o
- /(\w*)-*v(\d|\.)+/