Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

audomatically compile product page before running gh page script #268

Open
wants to merge 1 commit into
base: docs
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 26 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
language: scala
scala:
- 2.12.2
- 2.12.2
stages:
- name: test
if: "(branch = master OR branch = simulation_schemas OR branch = ionchannel) AND
type = pull_request"
- name: gensite
if: branch = docs AND type = pull_request
- name: ghpages
if: branch = docs AND type = push
- name: test
if:
"(branch = master OR branch = simulation_schemas OR branch = ionchannel) AND
type = pull_request"
- name: gensite
if: branch = docs AND type = pull_request
- name: ghpages
if: branch = docs AND type = push
jobs:
include:
- stage: test
script:
- sbt -javaOptions=.jvmopts compile
- sbt -javaOptions=.jvmopts test
- stage: gensite
script: sbt clean scalafmtCheck scalafmtSbtCheck paradox
- stage: ghpages
script: sbt clean makeSite ghpagesPushSite
- stage: test
script:
- sbt -javaOptions=.jvmopts compile
- sbt -javaOptions=.jvmopts test
- stage: gensite
script: sbt clean scalafmtCheck scalafmtSbtCheck paradox
- stage: ghpages
script:
- npm run build --prefix src/main/product-page-src
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent. We just need to fix the encrypted keys errors. I think I erased the encrypted keys (-K $encrypted_b14561f0d260_key -iv $encrypted_b14561f0d260_iv) values in travis when I was working on releasing neuroshapes in bintray.

- sbt clean makeSite ghpagesPushSite
env:
global:
- secure: Mw/BpJUUFHbB7MAJIZOWgVjjQkM89Nzt2YVWHU51ErTu2FZMXvrg7etg2+CRXpI442lMJn8N2VLyFSphtDNAQ48kC7ZC0Nl1OrmhCJ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hAZqW4lvW4G5HKlhkQCUf6QEtP1Q3BuGcOtTJ5kwZ728JQb/gDvh3zArd16/WDZ10eVpwnx5wWVlcXr9ctdg6kTpAqQVPBlXDwTSPapgvKWV5nF8UmNuh5ikXxrc4xASKsCPsXampwariJ1qZQYsgDfjfrYlIea8RzeWZc675RBDqn1Cn6Hsox3WMYRlbO4KF4N4o8=
before_install:
- openssl aes-256-cbc -K $encrypted_b14561f0d260_key -iv $encrypted_b14561f0d260_iv -in .travis/id_rsa.enc -out ~/.ssh/id_rsa -d
- chmod 600 ~/.ssh/id_rsa
- openssl aes-256-cbc -K $encrypted_b14561f0d260_key -iv $encrypted_b14561f0d260_iv -in .travis/id_rsa.enc -out ~/.ssh/id_rsa -d
- chmod 600 ~/.ssh/id_rsa
after_success:
- |-
$(npm bin)/set-up-ssh --key "$encrypted_b14561f0d260_key" \
--iv "$encrypted_b14561f0d260_iv" \
--path-encrypted-key ".travis/id_rsa.enc"
- |-
$(npm bin)/set-up-ssh --key "$encrypted_b14561f0d260_key" \
--iv "$encrypted_b14561f0d260_iv" \
--path-encrypted-key ".travis/id_rsa.enc"