-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
45 lines (45 loc) · 1.31 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
language: dart
dart:
- stable
- dev
branches:
only:
- master
cache:
directories:
- "$HOME/.pub-cache"
before_install:
- cd ..
- wget https://github.com/jathak/scheme_impl_skeleton/archive/master.zip
- unzip master.zip
- mv scheme_impl_skeleton-master dart_scheme_impl
- if [ -z "$PRIVATE_IMPL_PASSWORD" ]; then
export NO_IMPL="-x impl";
else
openssl aes-256-cbc -k "$PRIVATE_IMPL_PASSWORD"
-in dart_scheme/tool/travis/impl.dart.enc
-out dart_scheme_impl/lib/impl.dart -d;
fi
- cd $TRAVIS_BUILD_DIR
script:
- pub run test $NO_IMPL
- pub run grinder check
- pub run dart_style:format -n --set-exit-if-changed .
- dartanalyzer --fatal-warnings .
- pub run dependency_validator --ignore build_runner,build_web_compilers,sass_builder
before_deploy:
- openssl aes-256-cbc -K $encrypted_2195c966699e_key -iv $encrypted_2195c966699e_iv
-in tool/travis/deploy.key.enc -out tool/travis/deploy.key -d
- eval "$(ssh-agent -s)"
- chmod 600 tool/travis/deploy.key
- ssh-add tool/travis/deploy.key
- ssh-keyscan scheme.cs61a.org >> ~/.ssh/known_hosts
- git remote add dokku [email protected]:scheme
- git config --global push.default simple
deploy:
provider: script
script: make deploy
skip_cleanup: true
on:
branch: master
condition: $TRAVIS_DART_VERSION = "stable"