forked from ctweney/calcentral
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (51 loc) · 1.54 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
language: ruby
bundler_args: --without development production --deployment --jobs=4 --retry=5
cache: bundler
env: JRUBY_OPTS="--dev -J-Xmx900m" DISPLAY=:99.0 LOGGER_LEVEL=WARN
jdk: openjdk8
node_js: 10.1.0
os: linux
rvm: jruby-9.1.14.0
before_install:
- gem install bundler -v '1.15.4'
jobs:
include:
- stage: Test
if: type = pull_request OR env(ALWAYS_RUN_TYPE_LINT) = 'true'
script:
- npm config set strict-ssl false
- npm install
- npm run build
- npm run lint
- # Lint SCSS (parallel with above)
if: type = pull_request OR env(ALWAYS_RUN_TYPE_LINT) = 'true'
script:
- gem cleanup scss_lint
- gem install scss_lint --version 0.49.0
- scss-lint src/assets/stylesheets
- # RSpec
if: type = pull_request OR env(ALWAYS_RUN_TYPE_RSPEC) = 'true'
script:
- RAILS_ENV=test bundle exec rspec
- stage: Package
if: env(DEPLOY_CALCENTRAL_KNOB) = 'true'
script:
- echo $APP_TRAVIS_ACCESS_KEY
- echo $APP_TRAVIS_SECRET
- bundle install --deployment --local --retry 3
- bundle package --all
- bundle exec rake assets:precompile
- bundle exec rake fix_assets
- bundle exec rake torquebox:archive NAME=calcentral 2>&1 1>/dev/null
- ls -la
deploy:
provider: codedeploy
access_key_id: $APP_TRAVIS_ACCESS_KEY
secret_access_key: $APP_TRAVIS_SECRET
bucket: rtl-junction
key: calcentral.knob
bundle_type: zip
application: CalCentral
region: us-west-2
on:
all_branches: true