This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.loopperfect.buckaroo; | |
import com.google.common.collect.ImmutableList; | |
import com.google.common.collect.Maps; | |
import com.loopperfect.buckaroo.virtualterminal.TerminalBuffer; | |
import com.loopperfect.buckaroo.virtualterminal.components.Component; | |
import com.loopperfect.buckaroo.virtualterminal.components.ProgressBar; | |
import com.loopperfect.buckaroo.virtualterminal.components.StackLayout; | |
import com.loopperfect.buckaroo.virtualterminal.components.Text; | |
import io.reactivex.Observable; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public ObservableSource<C> apply(final Observable<A> x) { | |
Objects.requireNonNull(x, "x is null"); | |
return Observable.create(new ObservableOnSubscribe<C>() { | |
transient volatile Optional<A> last = Optional.empty(); | |
private void sendPrevious(@NonNull final ObservableEmitter<C> e) { | |
if (last.isPresent()) { | |
e.onNext(last.get()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public boolean isComplete() { | |
return dependencies.entrySet() | |
.stream() | |
.allMatch(entry -> { | |
final RecipeVersion recipeVersion = entry.getValue().getValue1(); | |
return recipeVersion.dependencies.map(dependencyGroup -> dependencyGroup.dependencies.entrySet() | |
.stream() | |
.allMatch(x -> dependencies.containsKey(x.getKey()) && | |
x.getValue().isSatisfiedBy(dependencies.get(x.getKey()).getValue0()))) | |
.orElse(true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dist: trusty | |
language: generic | |
before_install: | |
# Install Linuxbrew | |
- test -d $HOME/.linuxbrew/bin || git clone https://github.com/Linuxbrew/brew.git $HOME/.linuxbrew | |
- PATH="$HOME/.linuxbrew/bin:$PATH" | |
- echo 'export PATH="$HOME/.linuxbrew/bin:$PATH"' >>~/.bash_profile | |
- export MANPATH="$(brew --prefix)/share/man:$MANPATH" | |
- export INFOPATH="$(brew --prefix)/share/info:$INFOPATH" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before_install: | |
# Install Linuxbrew | |
- test -d $HOME/.linuxbrew/bin || git clone https://github.com/Linuxbrew/brew.git $HOME/.linuxbrew |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cache: | |
directories: | |
- $HOME/.linuxbrew/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dist: trusty | |
language: generic | |
before_install: | |
# Install Linuxbrew | |
- git clone https://github.com/Linuxbrew/brew.git $HOME/.linuxbrew | |
- PATH="$HOME/.linuxbrew/bin:$PATH" | |
- echo 'export PATH="$HOME/.linuxbrew/bin:$PATH"' >>~/.bash_profile | |
- export MANPATH="$(brew --prefix)/share/man:$MANPATH" | |
- export INFOPATH="$(brew --prefix)/share/info:$INFOPATH" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
script: | |
- buck build :hello |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before_install: | |
# Install Linuxbrew | |
- git clone https://github.com/Linuxbrew/brew.git $HOME/.linuxbrew | |
- PATH="$HOME/.linuxbrew/bin:$PATH" | |
- echo 'export PATH="$HOME/.linuxbrew/bin:$PATH"' >>~/.bash_profile | |
- export MANPATH="$(brew --prefix)/share/man:$MANPATH" | |
- export INFOPATH="$(brew --prefix)/share/info:$INFOPATH" | |
- brew --version | |
# Install Buck | |
- brew tap facebook/fb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dist: trusty | |
language: generic | |
script: | |
- ./build.sh |