-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
51 lines (42 loc) · 1.35 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
# https://docs.travis-ci.com/user/languages/dart/
language: dart
dart:
- stable
before_install:
- openssl aes-256-cbc -K $encrypted_fcd3721d6cbf_key -iv $encrypted_fcd3721d6cbf_iv -in donnelson-sandbox-flex-c774ac1c9428.json.enc -out ./donnelson-sandbox-flex-c774ac1c9428.json -d
before_script:
# https://flutter.dev/docs/get-started/web
- git clone https://github.com/flutter/flutter.git -b beta
- export PATH="$PATH:`pwd`/flutter/bin"
- flutter upgrade
- flutter config --enable-web
- flutter doctor
script:
- sh ./build.sh
# Debug
- pwd
- ls -la
# Clean up
# Remove unused directories, the ./dist directory houses it now
- rm -rf ./client
- rm -rf ./server
- rm -rf ./flutter
# Deploy configuration
# https://docs.travis-ci.com/user/deployment-v2 - configuration reference
# https://cloud.google.com/docs/authentication/getting-started#cloud-console - generate secret key
deploy:
edge: true
provider: gae
keyfile: "./donnelson-sandbox-flex-c774ac1c9428.json"
project: "donnelson-sandbox-flex"
skip_cleanup: true
# Run Travis CLI in this repo
# gem install travis
# Delete Travis Cache
# travis cache --com
# travis cache --com --delete
# Encrypt Secure Variables
# gem install travis
# travis login --github-token replace_with_github_personal_token
# cd to/this/repo
# travis encrypt-file donnelson-sandbox-c04a93dbca2b.json