Following a second day of stock market gains, investors looked forward to earnings reports from Eli Lilly and Amazon.